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

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

问题描述

当我启动 IPython Notebook 时,我可以导航到它并输入代码。但是,没有任何东西可以回到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.

我知道服务器正在获取查询(来自 - 调试输出)并回复它们,它只是从来没有在我的IPython Notebook窗口中输出。

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.

我正在运行Python 2.6.6和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 :(

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

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

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

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. 我杀死了软件防火墙程序。

  1. I killed the software firewall process.

我将笔记本配置为从任何地方接受HTTP连接(显然,使用密码和安全连接)。有关如何执行此操作的详细信息,请访问IPython网站上的 / a>。

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.

我不知道为什么第二个有效。我最好的猜测是,防火墙和NAT的组合使得与本地主机的连接看起来就像是来自其他地方。

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天全站免登陆