VK Cloud logo
Updated atMarch 20, 2024   06:18 AM

Creating a custom kernel

To create an individual kernel, run the following commands in the JupyterHub terminal:

  1. Create a virtual environment:
python3 -m venv set-name-of-venv

where set-name-of-venv is the name of the virtual environment.

  1. Activate the virtual environment:
source set-name-of-venv/bin/activate
  1. Install ipykernel:
pip install ipykernel
  1. Create a new kernel:
python -m ipykernel install --user --name set-name-of-venv --display-name "Python (myenv)"

where Python (myenv) is the name of the new kernel.

You can give an arbitrary name to display kernel and virtual environment.