Using environments with jupyterhub
How to enable a conda environment in jupyterhub. From the jupyterhub web interface:
1) Click the "File, then “New” pulldown button and choose “Terminal”
2) In the terminal window activate your environment (for example 'myenv':
conda activate myenv
3) install ipykernal in the environment:
3) install ipykernal in the environment:
conda install ipykernel
(This creates a Jupyter kernel linked to your Conda env, visible only to your user account on the system.)
4) Now add the environment to Jupyterhub
python -m ipykernel install --user --name myenv --display-name "Python (myenv)"
Ok, now back in JupyterHub, Select the Kernel:
python -m ipykernel install --user --name myenv --display-name "Python (myenv)"
Ok, now back in JupyterHub, Select the Kernel:
1) Open a notebook
2) Click Kernel -> Change Kernel
3) Choose: Python (myenv)
That should allow you to run code with the environment.