Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bf4/e9a7016e4c5dca2d6b8a19d6e10d23c0 to your computer and use it in GitHub Desktop.
Save bf4/e9a7016e4c5dca2d6b8a19d6e10d23c0 to your computer and use it in GitHub Desktop.
How I like to run my Jupyter notebooks

Step 0. Install Docker

Step 1. For your chosen project, decide where you want to store your notebooks and files in a workingfolder.

Step 2. Open that folder in the terminal cd workingfolder

Step 3. Run this command

docker run -it --rm -v $PWD:/home/jovyan/work -p 8888:8888 jupyter/all-spark-notebook

Step 4. This above step generates a link. Open that link in your preferred browser. The browser window will then automatically show all those notebooks stored in that workingfolder and now you can click to save changes. And also you do not need to upload/download anything.

Step 5. Have fun with your project you are working on for Step 1.

Step 6. Exit browser and break step 3 in terminal by pressing control-C

Repeat steps 1..6 for another project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment