from IPython import kernel code example Example: add kernel to jupyter python -m ipykernel install --user --name=myenv