Open rsignell-usgs opened 6 years ago
If you are using repo2docker
as described here you should be able to just add nb_conda_kernels
to the environment.yml
like:
$more environment.yml
name: root
channels:
- conda-forge
- defaults
dependencies:
- python=3.6
- jupyterhub
...
- ulmo
- nb_conda_kernels
See also: http://repo2docker.readthedocs.io/en/latest/usage.html#using-repo2docker-with-a-jupyterhub
Is that about right @yuvipanda?
@rsignell-usgs I'll see if can implement this in the next JH release.
It would be great to allow HydroShare JupyterHub users to create their own conda environments and to enable these to appear in the list of available kernels in Jupyter.
I opened a terminal edited my
$HOME/.condarc
to specify an additional directory for environments:then created a new environment
widgets
.It shows up when I do![2018-02-06_10-20-45](https://user-images.githubusercontent.com/1872600/35874246-01f22a6c-0b3a-11e8-9abf-4427982411fa.png)
conda info -e
:but it doesn't appear in the kernel list in Jupyter:![2018-02-06_10-21-59](https://user-images.githubusercontent.com/1872600/35874265-10a094c2-0b3a-11e8-985e-b02820ee2ae1.png)
I think you just need to add
nb_conda_kernels
to the root conda environment so that custom environments created by users will appear.