Skip to content

Instantly share code, notes, and snippets.

@lvnilesh
Last active August 9, 2017 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lvnilesh/e44e3dd1c97eb0467e7d71594e1e9744 to your computer and use it in GitHub Desktop.
Save lvnilesh/e44e3dd1c97eb0467e7d71594e1e9744 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