Deploy Jupyter Lab in an Anaconda container with docker compose
Compose YML
1 | version: "3.3" |
In docker-compose file, we need to use bash -c
to run multi commands.
Setting password for JupyterLab
We can use token to change password for jupyterlab on first login, then restart server.
Edit kernel in JupyterLab
## Step 1 activate target environment ## Step 2 install ipykernel conda install ipykernel
## Step 3 set up kernel add kernel into jupyterlab python -m ipykernel install --name [kernel name]
## Step 4 exsisting kernel jupyter kernelspec list
## Step 5 remove kernel jupyter kernelspec remove [kernel name]
Important
The communication to the kernel goes through WebSockets, which means you need to support WebSockets when using Nginx!