Skip to content

Commit f6ed848

Browse files
authored
Merge pull request #38 from LibreTexts/feature/conda-info
Add more information on nb_conda_kernels
2 parents 96e1686 + 905bd42 commit f6ed848

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

README.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ Conda Forge.
5454

5555
### Configuring `nb_conda_kernels`
5656
Based on the [documentation](https://zero-to-jupyterhub.readthedocs.io/en/latest/user-environment.html?highlight=conda%20environments#allow-users-to-create-their-own-conda-environments-for-notebooks)
57-
from *Zero to JupyterHub with Kubernetes*.
57+
from *Zero to JupyterHub with Kubernetes* and
58+
[nb_conda_kernels](https://github.com/Anaconda-Platform/nb_conda_kernels).
5859

5960
1. Make sure that `nb_conda_kernels` is installed in the root conda
6061
environment. Note that your version numbers may differ.
@@ -79,19 +80,26 @@ environment. Note that your version numbers may differ.
7980

8081
### Creating your own conda environment
8182

82-
1. Open the Terminal from the Launcher and run the command
83-
to create a conda environment.
83+
1. Open the Terminal from the Launcher and create a conda environment.
84+
[Specify your Jupyter kernel](https://github.com/jupyter/jupyter/wiki/Jupyter-kernels)
85+
(in other words, the language you wish to use) and the packages
86+
you wish to add.
8487
```
8588
conda create -n <your_env_name> <kernel> <packages>
8689
```
87-
88-
For example, to create a conda environment for Python, run
89-
`conda create -n my_python_env ipykernel`.
90-
If you want the `pendulum` package with Python, then run
91-
`conda create -n my_python_env ipykernel pendulum`.
92-
90+
For example, to create an R environment with the package r-leaflet, run
91+
`conda create -n r_leaflet_env r-irkernel r-leaflet`.
92+
9393
All conda environments will be saved in a folder in
94-
your home directory called `my-conda-envs`.
94+
your home directory called `my-conda-envs`.
95+
96+
> **Technical note:** If creating an environment using the IPython kernel,
97+
you can also simply specify the `nb_conda_kernels` package instead
98+
of the kernel by running
99+
`conda create -n <your_python_env_name> <packages> nb_conda_kernels`
100+
For example, to use tensorflow, you can run
101+
`conda create -n tensorflow_env ipykernel tensorflow` or
102+
`conda create -n tensorflow_env tensorflow nb_conda_kernels`
95103

96104
1. Activate your conda environment by running
97105
`source activate <your_env_name>`.

0 commit comments

Comments
 (0)