使用 IPython Notebook 获取输出 [英] Getting output with IPython Notebook

查看:46
本文介绍了使用 IPython Notebook 获取输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我启动 IPython Notebook 时,我可以导航到它并输入代码.然而,IPython Notebook 界面并没有回显.

我知道服务器正在获取查询(来自 --debug 输出)并响应它们,它只是从未在我的 IPython Notebook 窗口中给我输出.

我正在运行 Python 2.6.6 和 Windows 7

我目前不知道如何让这个笔记本工作起来.

这是我尝试(未成功)获取输出的截屏:

<块引用><块引用><块引用>

http://screencast.com/t/TwJ2ZmGnT

即使您不知道出了什么问题,也可以提供有关如何进一步调试我的问题的任何指示:(

到目前为止,我已经为龙卷风运行了测试聊天客户端,https://github.com/facebook/tornado/tree/master/demos/websocket,成功.

还有 pyzmq 的测试脚本,https://github.com/zeromq/pyzmq/blob/master/examples/poll/reqrep.py,运行成功.

解决方案

我遇到了这个问题.我找到了两种修复方法,但您的里程可能会有所不同:

  1. 我杀死了软件防火墙进程.

  2. 我将笔记本配置为接受来自任何地方的 HTTP 连接(显然,使用密码和安全连接).可以在在 IPython 网站上找到有关如何执行此操作的详细信息.

我不知道为什么第二个有效.我最好的猜测是防火墙和 NAT 的组合使连接到本地主机和笔记本看起来好像它们来自别处一样.

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.

解决方案

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.

这篇关于使用 IPython Notebook 获取输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆