Skip to content

StatisticalMice/julia-jupyter-docker

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Docker Images for Julia with JupyterLab

Dockerhub statisticalmice/julia-jupyter
GitHub statisticalmice/julia-jupyter-docker

Images

Julia 1.5

statisticalmice/julia-jupyter:1.5

Julia 1.6

statisticalmice/julia-jupyter:1.6 statisticalmice/julia-jupyter:latest

Layers

  1. The original Julia images are built on debian:buster-slim
  2. These images are built on julia:1.5-buster or julia:1.6-buster
  3. Create user 'arthur'
  4. Install Mambaforge
  5. Install jupyterlab and jupyter-server-proxy from conda-forge
  6. Install IJulia and Pluto
  7. Install glances, which is a server monitoring tool with a web interface

Versions on 24 April 2021:

1.5 1.6
Julia 1.5.4 1.6.1
Python 3.8.8 3.8.8
Jupyter 3.0.14 3.0.14
Conda/Mamba 4.10.0 4.10.0
Glances Glances v3.1.6.2 Glances v3.1.6.2
Debian 10.8 10.8

Other software installed include bottle, nodejs, less, nano, curl.

Using

Running Containers Locally

Example invocation is the following. -ti is required for interactive use. --rm removes the container after it exits. -p 8888:8888 opens the port 8888 on your your computer and connects it to he port 8888 inside the container, which is the port Jupyter by default uses.

docker run -ti --rm -p 8888:8888 statisticalmice/julia-jupyter:1.6

Attach a host directory to the container. The container can view and edit files in this directory.

-v /host/path/to/workspace:/home/arthur/workspace

Set the Jupyter authentication token (optional).

-e JUPYTER_TOKEN=my-secret-password

If you set JUPYTER_TOKEN, open this link on your browser. Enter your token in the input labelled 'Password or token'.

http://127.0.0.1:8888/lab

If you didn't specify a token, copy&paste the link from the command line output that looks like this.

http://127.0.0.1:8888/lab?token=46303e3c454ec209005852d2e3060c0568ba019d526c09a1

Click to open a Python notebook, a Glances monitoring tool (in a new browser tab), a Julia notebook, or a Pluto notebook (in a new browser tab).

notebook launcher image

How to run Pluto directly (without Jupyter)

Start the container in bash shell by attaching bash to the command line as follows.

docker run -ti --rm -p 8888:8888 statisticalmice/julia-jupyter:1.6 bash

Start Pluto in the bash shell.

julia -e "using Pluto; Pluto.run(host=\"0.0.0.0\", port=8888, launch_browser=false, require_secret_for_open_links=false, require_secret_for_access=false)"

Open this in a browser.

http://127.0.0.1:8888/

Start jupyter lab in the bash shell.

jupyter lab --ip 0.0.0.0 --port 8888

Base Images

Julia Docker official images
Julia language

Jupyter Docker Stacks

You can find the Docker images built by the Jupyter project using the following link. The jupyter/datascience-notebook contains Julia.

These

  • have more features
  • are much larger
  • are based on Ubuntu

Jupyter Docker Stacks documentation

Glances documentation

Glances

GitHub Super-Linter

About

Official Julia Docker image + Miniconda3 + JupyterLab from conda-forge

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published