##// END OF EJS Templates
Merge pull request #9103 from takluyver/kernel-install-doc...
Merge pull request #9103 from takluyver/kernel-install-doc Improve kernel installation docs

File last commit:

r21878:adef1153
r21881:1e654998 merge
Show More
kernel_install.rst
39 lines | 1.5 KiB | text/x-rst | RstLexer
Jonathan Frederic
Add files remove in https://github.com/jupyter/notebook/pull/124
r21584 .. _kernel_install:
Min RK
document kernel installation in multiple environments
r21710 Installing the IPython kernel
=============================
Jonathan Frederic
Add files remove in https://github.com/jupyter/notebook/pull/124
r21584
Thomas Kluyver
Improve kernel installation docs...
r21878 The Jupyter Notebook and other frontends automatically ensure that the IPython kernel is available.
However, if you want to use a kernel with a different version of Python, or in a virtualenv or conda environment,
you'll need to install that manually.
Min RK
document kernel installation in multiple environments
r21710
Thomas Kluyver
Improve kernel installation docs...
r21878 Using the Python version or environment for which you want to set up the kernel, run::
Jonathan Frederic
Add files remove in https://github.com/jupyter/notebook/pull/124
r21584
Thomas Kluyver
Improve kernel installation docs...
r21878 pip install ipykernel # or: conda install ipykernel
python -m ipykernel install --user
Min RK
document kernel installation in multiple environments
r21710
Matthias Bussonnier
take comments into account
r21816 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.
Thomas Kluyver
Improve kernel installation docs...
r21878 See `python -m ipykernel install --help` for the list of installation options like
naming the kernel, or non default install location.
Min RK
document kernel installation in multiple environments
r21710
.. _multiple_kernel_install:
Thomas Kluyver
Improve kernel installation docs...
r21878 Multiple IPython installations
==============================
Min RK
document kernel installation in multiple environments
r21710
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:
.. sourcecode:: bash
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