JupyterHub
This JupyterHub installation has limited resources and is meant for developmental work.
JupyterHub is accessible from UK’s network (or VPN) at https://jupyterhub.ccs.uky.edu.
Use your linkblue ID/password to log into the system.
Initial login will take a few minutes as it builds the default conda environment.
Create a custom conda environment and install it to JupyterHub
Log into JupyterHub. You should initialize to the “Lab” screen.
Click File > New > Terminal.
A new tab should be created with a terminal prompt. Create a conda environment with your specific package requirements, for example:
conda create --name CustomEnv1 "python==3.9" "numpy>=1.10"
This creates an environment named “CustomEnv1” that will install Python v3.9 and numpy>=1.10. You can customize the name and packages.
Once the environment is created, you need to activate the environment with the following commands:
source /opt/miniconda/bin/activate conda activate CustomEnv1
Additional packages can be installed to customize the environment using the following:
conda install matplotlib
Once the environment is finalized, we would like to install it as an ipython kernel to be accessible from JupyterHub:
Now you can restart your JupyterHub server (File > Hub Control Panel > Stop My Server THEN Start My Server), and the “Custom Environment” kernel will be available.
Remove a custom conda environment and kernel from JupyterHub
Log into JupyterHub. You should initialize to the “Lab” screen.
Click File > New > Terminal.
A new tab should be created with a shell. List the kernels that are currently installed:
Remove your chosen kernel:
Remove the conda environment:
Restart the JupyterHub server (File > Hub Control Panel > Stop My Server THEN Start My Server) and the kernel is no longer available.
Center for Computational Sciences