/
JupyterHub

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

  1. Log into JupyterHub. You should initialize to the “Lab” screen.

  2. Click File > New > Terminal.

  3. 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.

  4. Once the environment is created, you need to activate the environment with the following commands:

    source /opt/miniconda/bin/activate conda activate CustomEnv1
  5. Additional packages can be installed to customize the environment using the following:

    conda install matplotlib
  6. Once the environment is finalized, we would like to install it as an ipython kernel to be accessible from JupyterHub:

  7. 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

  1. Log into JupyterHub. You should initialize to the “Lab” screen.

  2. Click File > New > Terminal.

  3. A new tab should be created with a shell. List the kernels that are currently installed:

  4. Remove your chosen kernel:

  5. Remove the conda environment:

  6. Restart the JupyterHub server (File > Hub Control Panel > Stop My Server THEN Start My Server) and the kernel is no longer available.

Related content

Creating a Custom Conda Environment on HPC
Creating a Custom Conda Environment on HPC
Read with this
Running Interactive JupyterNotebook Session Using Open OnDemand
Running Interactive JupyterNotebook Session Using Open OnDemand
Read with this
Creating a custom kernel for Jupyter Notebooks
Creating a custom kernel for Jupyter Notebooks
Read with this
Software list for singularity containers for conda packages in the MCC cluster
Software list for singularity containers for conda packages in the MCC cluster
Read with this
HPC Software Info
HPC Software Info
Read with this
Conda and Containers on LCC
Conda and Containers on LCC
Read with this

Center for Computational Sciences