Skip to content

Latest commit

 

History

History
85 lines (56 loc) · 2.69 KB

Readme.md

File metadata and controls

85 lines (56 loc) · 2.69 KB

Jupyter NodeJS

📒 A JavaScript Notebook running in Container 🐳 with NodeJS support



demo-1

Running 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 NodeJS Notebook!

pwd-run-4

Run in Your Local Machine

  1. Run Following command in your terminal:
docker run -d -p 8888:8888 liuderchi/jupyter-nodejs: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

Develop Your Custom Script

$ git clone https://github.com/liuderchi/jupyter-nodejs.git
$ cd learn-js-in-jupyter
$ docker run -d -p 8888:8888 \
  -v $PWD/custom:/root/.jupyter/custom \
  liuderchi/jupyter-nodejs: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

Inspiration

This project is a fork from notablemind/jupyter-nodejs

License

MIT License