[yt-users] yt and ipython notebook
Mark Krumholz
mkrumhol at ucsc.edu
Wed Sep 18 15:19:01 PDT 2013
On Sep 18, 2013, at 3:04 PM, Nathan Goldbaum wrote:
> Hi Mark,
>
> Take a look at this issue: https://github.com/ipython/ipython/issues/4177
>
> It looks like updating yt's dependencies left the old version of IPython behind. You should be able to get rid of it by doing `pip remove IPython` and then `pip install IPython`.
>
> That will get you IPython 1.1, which we should also add to the install script when we add jinja2.
>
> -Nathan
Sorry, still no luck. I just did
pip uninstall IPython
pip install IPython --upgrade
and I can confirm that when I start iPython I am now getting version 1.1.0:
(yt-x86_64)pfe20:hmc3_mhd_lowden mkrumhol$ ipython
Python 2.7.5 (default, Sep 18 2013, 13:43:29)
Type "copyright", "credits" or "license" for more information.
IPython 1.1.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]:
However, when I try to run in a notebook, the error is exactly the same as before:
yt-x86_64)pfe20:hmc3_mhd_lowden mkrumhol$ ipython notebook --no-browser --port=51707
2013-09-18 15:13:19.048 [NotebookApp] Using existing profile dir: u'/home3/mkrumhol/.ipython/profile_default'
2013-09-18 15:13:19.126 [NotebookApp] Using MathJax from CDN: http://cdn.mathjax.org/mathjax/latest/MathJax.js
2013-09-18 15:13:19.162 [NotebookApp] The port 51707 is already in use, trying another random port.
2013-09-18 15:13:19.163 [NotebookApp] The port 51708 is already in use, trying another random port.
2013-09-18 15:13:19.163 [NotebookApp] Serving notebooks from local directory: /nobackupp8/mkrumhol/hmc3_mhd_lowden
2013-09-18 15:13:19.163 [NotebookApp] The IPython Notebook is running at: http://127.0.0.1:51709/
2013-09-18 15:13:19.163 [NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[NotebookApp] Kernel started: a97769ec-9e8b-4b2c-829a-4eca9e98644e
[NotebookApp] Connecting to: tcp://127.0.0.1:43726
[NotebookApp] Connecting to: tcp://127.0.0.1:50412
[NotebookApp] Connecting to: tcp://127.0.0.1:55587
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/u/mkrumhol/yt-x86_64/lib/python2.7/site-packages/IPython/zmq/ipkernel.py", line 55, in <module>
from serialize import serialize_object, unpack_apply_message
File "/u/mkrumhol/yt-x86_64/lib/python2.7/site-packages/IPython/zmq/serialize.py", line 35, in <module>
from IPython.utils.pickleutil import can, uncan, canSequence, uncanSequence
ImportError: cannot import name canSequence
--
Mark Krumholz
More information about the yt-users
mailing list