Skip to content
Advertisement

Tag: jupyter-kernel

How to install a new Jupyter Kernel from script

I am trying to install a new kernel on a jupyter environment from bash script. In a dockerfile that uses jupyter/minimal-notebook as the parent image, I run a bash script that: generates a new virtual env: python -m venv new_kernel installs numpy and ipykernel new_kernel/bin/pip install ipykernel numpy registers the kernel: new_kernel/bin/python -m ipykernel install –name new_kernel –display-name “Python (new_kernel)”.

Advertisement