学习笔记《Ipython Notebook》

Hello, Ipython Notebook

ipython notebook 无法正常启动

问题1. Connecting to 127.0.0.1:80… failed: Connection refused.”?

手动修改 firefox 代理

问题2. An unknown error occurred while loading this notebook. This version can load notebook formats v4 or earlier.

I solved this problem by changing the ownership of the ~/.local/share/jupyter directory from root to user. I don’t know why this problem occurred, as it didn’t happen on my other systems, so perhaps it’s a bug and I will leave this here.

动态更新绘图

1
2
3
4
5
6
7
8
9
10
%matplotlib inline
import time
import pylab as pl
from IPython import display
for i in range(10):
pl.clf()
pl.plot(pl.randn(100))
display.display(pl.gcf())
display.clear_output(wait=True)
time.sleep(1.0)

本作品采用知识共享署名 2.5 中国大陆许可协议进行许可,欢迎转载,但转载请注明来自 Sunshine 并保持转载后文章内容的完整。本人保留所有版权相关权利。

本文链接:http://gaobb.github.io/2016/10/14/学习笔记_Ipython/

坚持原创技术分享,您的支持将鼓励我继续创作!

热评文章