简体   繁体   中英

Jupyter Notebook failed to run %qtconsole

When I run %qtconsole on jupyter notebook (I ran jupyter notebook using Windows power-shell0

Error gives

 c:\users\mohit\appdata\local\enthought\canopy\user\lib\site-  
 packages\IPython\utils\traitlets.py:5: 
 UserWarning: IPython.utils.traitlets has moved to a top-level traitlets package.
 warn("IPython.utils.traitlets has moved to a top-level traitlets package.")

c:\users\mohit\appdata\local\enthought\canopy\user\lib\site-packages\IPython\utils\pickleutil.py:3: 
UserWarning: IPython.utils.pickleutil has moved to ipykernel.pickleutil
warn("IPython.utils.pickleutil has moved to ipykernel.pickleutil")

c:\users\mohit\appdata\local\enthought\canopy\user\lib\site-packages\IPython\utils\jsonutil.py:3: 
UserWarning: IPython.utils.jsonutil has moved to jupyter_client.jsonutil
warn("IPython.utils.jsonutil has moved to jupyter_client.jsonutil")

Maybe you should try this:

try:
    from IPython.parallel import bind_kernel
except ImportError:
    # technically possible, because parallel has higher pyzmq min-version
    pass
else:
    bind_kernel()

Then, in the next cell:

%qtconsole

For details you can type qtconsole?? in Jupyter.

The import on top might give you this message:

/Users/reblochonmasque/anaconda3/lib/python3.4/site-packages/IPython/parallel.py:13: ShimWarning: The `IPython.parallel` package has been deprecated. You should import from ipyparallel instead.
  "You should import from ipyparallel instead.", ShimWarning)

But according to the docs, it is okay.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM