在ipython notebook中,当我运行%lsmagic时,我得到:
Available cell magics:
%%! %%bash %%capture %%file %%perl %%prun %%python3 %%ruby %%script %%sh %%sx %%system %%timeit我期待看到:
可用的单元格魔术:%%!%%HTML%%SVG%%bash%%capture%%debug%%file%%html%%javascript%%LaTeX%%Perl%%%prun%%PyPy%%python%%python3%%ruby%scrip%sh%%sg%%sx%%System%%time%timeit%%writefile
(来自http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/notebooks/Cell%20Magics.ipynb)
我的python版本是2.7.4,我的Ipython版本是0.13.2。我也是在Ubuntu上这样做的。如何更新我的ipython魔术?
发布于 2013-12-30 15:54:56
元问题:回答自己的问题的适当礼节是什么?尤其是当答案变得相当简单的时候。
这个问题的解决方案相当简单。我的ipython版本已过时;apt-get的ipython版本已过时。为了解决这个问题,我使用pip (我刚刚了解到的更新和安装python包的规范方法)将ipython升级到当前的稳定版本。
https://stackoverflow.com/questions/20835389
复制相似问题