Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning when installing and running under Jupyter 4 #31

Closed
ajmazurie opened this issue Aug 14, 2015 · 7 comments
Closed

Warning when installing and running under Jupyter 4 #31

ajmazurie opened this issue Aug 14, 2015 · 7 comments

Comments

@ajmazurie
Copy link

Here is the warning message obtained during installation:

$ pip install bash_kernel
...
Successfully installed bash-kernel-0.4
$ python -m bash_kernel.install
/Users/ajmazurie/.pyenv/versions/_jupyter/lib/python2.7/site-packages/IPython/kernel/__init__.py:13: ShimWarning: The `IPython.kernel` package has been deprecated. You should import from ipykernel or jupyter_client instead.
  "You should import from ipykernel or jupyter_client instead.", ShimWarning)
Installing IPython kernel spec

And here is the message obtained when launching a notebook with the Bash kernel:

/Users/ajmazurie/.pyenv/versions/_jupyter/lib/python2.7/site-packages/IPython/kernel/__init__.py:13: ShimWarning: The `IPython.kernel` package has been deprecated. You should import from ipykernel or jupyter_client instead.
  "You should import from ipykernel or jupyter_client instead.", ShimWarning)
[IPKernelApp] ERROR | UNKNOWN MESSAGE TYPE: u'comm_open'

As far as I can tell the kernel seems to work well, however.

Thanks,
Aurelien

@takluyver
Copy link
Owner

Thanks. It shouldn't affect the working of the kernel, but we'll need to update the imports before ipython 5 comes out.

@mjbright
Copy link

mjbright commented Sep 9, 2015

I've been trying to install this module in the jupyter/minimal-notebook Docker image.

I get a similar message to the above when installing the bash_kernel.

/opt/conda/lib/python3.4/site-packages/IPython/kernel/init.py:13: ShimWarning: The IPython.kernel package has been deprecated. You should import from ipykernel or jupyter_client instead.
"You should import from ipykernel or jupyter_client instead.", ShimWarning)
Installing IPython kernel spec

In my case bash is not available in the "New" dropdown menu.

I'm confused as to how I can invoke this kernel on the command-line, I tried several things but none of these recognize the --kernel option.

ipython console --kernel bash
ipython notebook --kernel bash
jupyter notebook --kernel bash

Versions:

ipython --version: 4.0.0
jupyter --version: 4.0.4

I also tried modifying the install.py to import ipykernel or jupyter_client but got import errors.

Any suggestion?
This is my favourite kernel ;-)

@takluyver
Copy link
Owner

The console should recognise the --kernel option; the notebook won't, because you use the dropdown menu to select kernels instead.

It sounds like the kernel spec is not getting installed correctly. Can you see a kernels/bash/ subfolder under any of the data directories? Run jupyter --paths to see where these are.

@mjbright
Copy link

mjbright commented Sep 9, 2015

Hi,

Yes I see that the bash kernel.json was being installed
under /root/.local/share/jupyter/kernels/bash/kernel.json ... not good.

So modifying my script to install with
sudo -u jovyan python -m bash_kernel.install

did the trick.

Now I just have to automate that ... will check with docker-stacks for that
...

Thanks.

On 9 September 2015 at 20:23, Thomas Kluyver notifications@github.com
wrote:

The console should recognise the --kernel option; the notebook won't,
because you use the dropdown menu to select kernels instead.

It sounds like the kernel spec is not getting installed correctly. Can you
see a kernels/bash/ subfolder under any of the data directories? Run jupyter
--paths to see where these are.


Reply to this email directly or view it on GitHub
#31 (comment)
.

@takluyver
Copy link
Owner

I should probably make an option to do a systemwide install of the kernelspec rather than a per-user install. Maybe it should even do that automatically when run as root, but I'm not sure about that.

The code is already there, it's just not exposed at the command line. If you want to work on it, go for it.

@takluyver
Copy link
Owner

Closed by #39

@nico972
Copy link

nico972 commented May 31, 2016

Update the anaconda version by:

conda update conda
And then
 conda update anaconda

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants