2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Use different kernels in Jupyter notebook

Last updated at Posted at 2018-07-21

#Problem
After switching into different environment through anaconda by source activate myenv, then install new package by pip install package. However, this new package could not be imported through jupyter notebook. Also, when creating new notebook, I could not select kernel for the myenv kernel.

Solution

https://github.com/Anaconda-Platform/nb_conda_kernels/issues/57
Install Ipykernel in the conda virtual env.
conda install ipykernel

Then add the kernel to jupyter noteobok by

source activate myenv
python -m ipykernel install --user --name myenv --display-name "Python (myenv)"

Also you can switch between kernels using the following method.
https://qiita.com/yoppe/items/38005f415a5b8b884c7d

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?