简体   繁体   中英

Getting output with IPython Notebook

When I launch IPython Notebook I can navigate to it and enter code. However, nothing is ever echo'd back to the IPython Notebook interface.

I know the server is getting the queries (from --debug output ) and responding to them it's just never giving me output in my IPython Notebook window.

I am running Python 2.6.6 and Windows 7

I am at a loss currently on how to get this notebook thing to work.

Here is a screencast of me trying (unsuccessfully) to get output:

http://screencast.com/t/TwJ2ZmGnT

Even if you don't know what's wrong, any pointers on how to further debug my problems :(

So far I have run the test chatclient for tornado, https://github.com/facebook/tornado/tree/master/demos/websocket , successfully.

And also the test scripts for pyzmq, https://github.com/zeromq/pyzmq/blob/master/examples/poll/reqrep.py , ran successfully.

The return output to the notebook was being blocked by Sophos Endpoint Security and Control.

Disabling "Sophos Web Intelligence Service" in services.msc worked, but it was not ideal since it turns off my web intelligence or whatever ... I don't really want to make myself more susceptible to bad stuff...

So the solution is to:

  1. Open your Sophos Endpoint Security and Control Panel from your tray or start menu.

  2. Select "Configure" -> "Anti-virus" -> "Authorization" from the menu at the top.

  3. Select the websites tab.

  4. Click the "Add" button and add 127.0.0.1 and localhost to the "Authorized websites" list.

  5. Restart the computer

  6. Output works now :)

我和OP处于相同的状态,刚刚发现IPython笔记本在启动时工作(没有取消Sophos)

ipython notebook --ip=localhost

I had this problem. I found two ways of fixing it, though your mileage may vary:

  1. I killed the software firewall process.

  2. I configured the notebook to accept HTTP connections from anywhere (with a password and a secure connection, obviously). Details of how to do this can be found on the IPython website .

I don't know why the second one worked. My best guess is that the combination of the firewall and a NAT made connections to localhost look, to the notebook, as though they were coming from elsewhere.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM