Closed rsignell-usgs closed 4 years ago
To create a custom environment:
Ensure that nb_conda_kernels is installed in the base conda environment. If it's not, ask the JupyterHub provider to include it!
nb_conda_kernels
In JupyterHub, edit your ~/.condarc to specify a persisted directory (like /home/jovyan/my-conda-envs for your environments:
~/.condarc
/home/jovyan/my-conda-envs
channels: - conda-forge envs_dirs: - /home/jovyan/my-conda-envs
Create your custom environment including the ipykernel package:
ipykernel
conda create -n my_new_custom_env my_package_1 my_package_2 ipykernel
Stop and start your server.
You should now be able to see your custom env on the kernel pick list:
Worked perfectly!
Thanks Rich! The create line should read: conda create -n my_custom_env my_package1 mypackage2 ipykernel
conda create -n my_custom_env my_package1 mypackage2 ipykernel
Thanks @dnoawcki-usgs! Corrected above!
To create a custom environment:
Ensure that
nb_conda_kernels
is installed in the base conda environment. If it's not, ask the JupyterHub provider to include it!In JupyterHub, edit your
~/.condarc
to specify a persisted directory (like/home/jovyan/my-conda-envs
for your environments:Create your custom environment including the
ipykernel
package:Stop and start your server.
You should now be able to see your custom env on the kernel pick list: