Skip to content

liuderchi/jupyter-nodejs

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

69 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

About

πŸ“’ 🐳 Run NodeJS in Jupyter Notebook with Docker Container support

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.1%
  • Dockerfile 2.7%
  • Makefile 0.2%