Two lil' scripts (notebook-up
& notebook-down
) leveraging Docker to make it convenient to fire up
Jupyter Notebooks attached to the current folder.
- Place
notebook-up
andnotebook-down
on your path as executable files (i.e.,chmod 755 notebook-up notebook-down
) - Use
notebook-up
to start the notebook andnotebook-down
(must be run from the same folder) to kill the docker container and clean up
The notebook-up
script just tells Docker to fire up a minimal Jupyter Notebook container attached to the current folder
with the name "-notebook" and then waits for that container to report it's security token in the
container logs so the script can open a browser directly to the notebook ready-to-go for you. If the notebook container
is already running, it will just open the browser to the notebook.
The script installs a couple of extra libraries:
Any notebooks saved will be saved to the same folder you were in when you ran notebook-up
.