Run JupyterLab with Docker Compose, with integrated support for other languages: C, Kotlin, Bash, and JavaScript.
Anyone trying to understand how to install alternative kernels in order ot get support for programming languages other than Python in JupyterLab.
-
Edit
docker-compose.ymland replace:existing-docker-network/path/to/jupyter/notebooks: A directory with your.ipynbnotebooks, typically a Git repo. Its root will show up in the sidebar.1/path/to/jupyter/configuration: Settings and cache. For rootless Docker, change this directory's ownership on the host to100999:100099(it's not a typo).1
-
Run
docker compose up -d --build. -
The default port is
8888. -
Install additional Python packages by adding them to the
# install Python packagessection of the Dockerfile, then rebuild.
- Run
docker logs jupyterand copy the token. - Fill in the form, including your new password.
- Follow the instructions in
/path/to/jupyter/configuration/jupyter_server_config.py:c.ServerApp.password; ignore DEPRECATED warnings.