Skip to content

Jupyter Docker Stack image with Ruby kernel (iruby) for Jupyter/IPython Notebook enabled.

License

Notifications You must be signed in to change notification settings

shihanng/iruby-docker

Repository files navigation

Build Status Docker Cloud Automated build Docker Cloud Build Status

iruby-docker

iruby-docker is a community maintained Jupyter Docker Stack image with iruby installed. This image is built based on the Jupyter Docker Stacks's cookiecutter, the image is available on Docker Hub.

Other features

Usage

$ docker run -it --name iruby-notebook --rm -p 8888:8888 -v `pwd`:/home/jovyan/work shihanng/iruby-docker:latest
...

    To access the notebook, open this file in a browser:
        file:///home/jovyan/.local/share/jupyter/runtime/nbserver-17-open.html
    Or copy and paste one of these URLs:
        http://(xxxxxxxxxxxx or 127.0.0.1):8888/?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Based on the URL above, visit http://127.0.0.1:8888/?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx. This command will mount the current working directory (pwd) to the /home/jovyan/work directory in Docker container and all files can be found in the work directory in the browser as shown:

Jupyter Notebook

Use JUPYTER_ENABLE_LAB environment variable to enable JupyterLab.

$ docker run -it --name iruby-notebook --rm -p 8888:8888  -e JUPYTER_ENABLE_LAB=yes -v `pwd`:/home/jovyan/work shihanng/iruby-docker:latest

JupyterLab