Skip to content

Latest commit

 

History

History
88 lines (57 loc) · 2.93 KB

README.md

File metadata and controls

88 lines (57 loc) · 2.93 KB

Jupyterlab Docker

📙 JupyterLab + NodeV10 / Py2 / Py3 kernels + Container 🐳 = Awesome Learning Tools 👩‍💻👨‍💻



demo-1

Run Online in Play With Docker (free)

  1. Click Try in PWD to launch a new container. After the stack builder is finished, close the dialog.
  • pwd-run-1
  1. Get Access Token by running this command in the terminal prompt:
docker logs $(docker container list | awk 'FNR==2{print $1}') 2>&1 \
  | grep -E 'token=(.*)' -o | cut -c7-54
  1. Click the link above to access Jupyter page:
  • pwd-run-2
  1. In page paste the token in the input field to login
  • pwd-run-3
  1. 🎉 Congrats! Now you can create a Notebook with JavaScript, Python 3 or Python 2 Environment!
  • pwd-run-4

Run in Your Local Machine

  1. Run Following command in your terminal:
docker run -d -p 8888:8888 liuderchi/jupyterlab-ijavascript:latest
  1. Run following command to get Jupyter token. Then Copy it.
docker logs $(docker container list | awk 'FNR==2{print $1}') 2>&1 \
    | grep -E 'token=(.*)' -o | cut -c7-54
  1. In browser go to localhost:8888?token=PASTE_JUPYTER_TOKEN_HERE

Run and Save Custom Settings

$ git clone https://github.com/liuderchi/jupyterlab-docker.git
$ cd jupyterlab-docker/jupyterlab
$ docker run -d -p 8888:8888 \
  -v $PWD/jupyterlab-settings:/root/.jupyter/lab/user-settings/@jupyterlab \
  liuderchi/jupyterlab-ijavascript:latest

# print jupyter token
$ docker logs $(docker container list | awk 'FNR==2{print $1}') 2>&1 \
  | grep -E 'token=(.*)' -o | cut -c7-54

in browser go to localhost:8888?token=PASTE_JUPYTER_TOKEN_HERE

Now you can enjoy jupyterlab and save custom settings in your disk (Menu Bar > Settings > Advanced Settings Editor).
Setting files will be saved in jupyterlab/jupyterlab-settings.

Inspiration

This project is a fork from mikebirdgeneau/jupyterlab-docker

License

MIT License