dnnagy / jupyter-notebook-base

Dockerfile for nagyd96/jupyter-notebook-base

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jupyter-notebook-base

Dockerfile for nagyd96/jupyter-notebook-base

TODO:

Add explicit password protection, so we do not need to copy tokens

Start a notebook one-liner:

docker run -it -p 8888:8888 -e THEME='onedork' -e PLT_DARK_THEME=1 --mount type=bind,source="$(pwd)",target=/home/nagyd96/workdir nagyd96/jupyter-notebook-base:latest

To run this notebook:

docker pull nagyd96/jupyter-notebook-base
docker run -it -p 8888:8888 \
--mount type=bind,source="$(pwd)",target=/home/nagyd96/workdir nagyd96/jupyter-notebook-base:latest

If you want to run with a specific theme:

docker run -it -p 8888:8888 \
-e THEME='onedork' \
--mount type=bind,source="$(pwd)",target=/home/nagyd96/workdir nagyd96/jupyter-notebook-base:latest

Available themes: https://github.com/dunovank/jupyter-themes If You want to use dark theme in matplotlib, add -e PLT_DARK_THEME=1 to the docker command

Change password

The default password is 'notebook'. You can generate a password hash by running

python -c "from notebook.auth import passwd; print(passwd('my-password'))

About

Dockerfile for nagyd96/jupyter-notebook-base


Languages

Language:Jupyter Notebook 94.9%Language:Shell 2.9%Language:Dockerfile 2.2%