Show More
@@ -38,15 +38,31 b' can be viewed and changed with a normal text editor.' | |||||
38 | Kernels for different environments |
|
38 | Kernels for different environments | |
39 | ---------------------------------- |
|
39 | ---------------------------------- | |
40 |
|
40 | |||
41 |
If you want to have multiple IPython kernels for different virtualenvs or conda |
|
41 | If you want to have multiple IPython kernels for different virtualenvs or conda | |
42 | you will need to specify unique names for the kernelspecs. |
|
42 | environments, you will need to specify unique names for the kernelspecs. | |
43 |
|
43 | |||
44 | For example, using conda environments: |
|
44 | Make sure you have ipykernel installed in your environement. If you are using | |
|
45 | ``pip`` to install ``ipykernel`` in a conda env, make sure ``pip`` is | |||
|
46 | installed:: | |||
|
47 | ||||
|
48 | .. sourcecode:: bash | |||
|
49 | ||||
|
50 | source activate myenv | |||
|
51 | conda install pip | |||
|
52 | conda install ipykernel # or pip install ipykernel | |||
|
53 | ||||
|
54 | For example, using conda environments, install a ``Python (myenv)`` Kernel in a first | |||
|
55 | environment: | |||
45 |
|
56 | |||
46 | .. sourcecode:: bash |
|
57 | .. sourcecode:: bash | |
47 |
|
58 | |||
48 | source activate myenv |
|
59 | source activate myenv | |
49 | python -m ipykernel install --user --name myenv --display-name "Python (myenv)" |
|
60 | python -m ipykernel install --user --name myenv --display-name "Python (myenv)" | |
|
61 | ||||
|
62 | And in a second environment, after making sure ipykernel is installed in it: | |||
|
63 | ||||
|
64 | .. sourcecode:: bash | |||
|
65 | ||||
50 | source activate other-env |
|
66 | source activate other-env | |
51 | python -m ipykernel install --user --name other-env --display-name "Python (other-env)" |
|
67 | python -m ipykernel install --user --name other-env --display-name "Python (other-env)" | |
52 |
|
68 |
General Comments 0
You need to be logged in to leave comments.
Login now