# JupyterLab Cheatsheet ## Docker Container https://github.com/jupyter/docker-stacks Start [[ajking.io/Knowledge Base/Docker|Docker]] container: ``` docker run -it --rm -p 10000:8888 -v "${PWD}":/home/jovyan/work quay.io/jupyter/minimal-notebook:2024-01-15 ``` Start [[ajking.io/Knowledge Base/Docker|Docker]] container with `jovyan` as sudoer: ``` docker run -it --rm -p 8888:8888 --user root -e GRANT_SUDO=yes -v "${PWD}":/home/jovyan/work quay.io/jupyter/minimal-notebook:2024-01-15 ``` The output will provide a URL like `http://127.0.0.1:8888/lab?token=07da2203f5c9d50fb971a3247c27cb2ab7b37e22904afc73` make sure to change `8888` to whatever port was specified when the container was created. ## Connecting VSCode to JupyterLab Docker 1. Open ipynb file 2. Choose kernel 3. Choose existing server 4. Provide server URL (example `http://127.0.0.1:10000/lab?token=07da2203f5c9d50fb971a3247c27cb2ab7b37e22904afc73`) 5. Give it a name 6. Choose kernel