##// END OF EJS Templates
Fix color schemes in Linux...
Fix color schemes in Linux Object information found by prefixing object with a question mark (like int?) was printing garbled characters. git-bisect found 2b1c969628871300a4779963e8776b5a8e966f34 to be the offending commit. A refactoring in that commit forgot to add one color and also used the wrong object (it used InputTermColors instead of TermColors).

File last commit:

r21816:e5b01e24
r21828:1c75e559
Show More
kernel_install.rst
62 lines | 2.0 KiB | text/x-rst | RstLexer

Installing the IPython kernel

IPython can be installed (different python versions, virtualenv or conda environments) as a kernel for Jupyter by following these steps:

  • make sure that the desired python installation is active (e.g. activate the environment, or use absolute paths) and ipykernel is installed
  • run once ipython kernel install --user, or python -m ipykernel install --user to ensure a specific Python installation is used.
  • See ipython kernel install --help for the list of installation options like naming the kernel, or non default install location.
  • The IPython kernel for Jupyter is provided by the ipykernel python package, see ipykernel documentation if you need more flexibility for installation.

For example:

source activate kernel-environment
ipython kernel install --user
source deactivate kernel-environment

or

~/envs/kernel-environment/python -m ipykernel install --user

The last command installs a :ref:`kernel spec <jupyterclient:kernelspecs>` file for the current python installation. Kernel spec files are JSON files, which can be viewed and changed with a normal text editor.

Note

The command ipython kernelspec is deprecated and will be removed in future versions.

Multiple IPython installs

If you want to have multiple IPython kernels for different environments, you will need to specify unique names for the kernelspecs, and you may also want to specify the display name of those kernels, so that you can clearly see which is which in the notebook menus:

source activate myenv
ipython kernel install --user --name myenv --display-name "Python (myenv)"
source activate other-env
ipython kernel install --user --name other-env --display-name "Python (other-env)"
source deactivate