Giter VIP home page Giter VIP logo

elara's Introduction

elara

A Docker image based on the jupyter-docker-stacks scipy-notebook image, which is itself based on the minimal-notebook image, which is itself based on the base-notebook image. This repo and project is named after Elara, a prograde irregular satellite of the planet Jupiter.

See Jupyter Docker Stacks for a description of each image's dockerfile.

This image adds a number of additional packages including nbgrader and rise.

1.0 Generate image

Build the image. Note the trailing ".". Flags:

  • -f − path to file.
  • -t − tag name.
docker build -f ./Dockerfile -t elara:latest .

2.0 Running images

2.1 Starting JuypterLab in a new container

Run the image, invoking the JupyterLab interface. Flags:

  • --rm − automatically clean up the container and remove the file system when the container exits. Also removes anonymous volumes associated with the container.
  • -p − set the local port to 8888 and the container port to 8888 (required).
  • -v − bind local volume (name or abs path) to container volume (abs path).
  • -e − sets an environment variable (in this case, launching the JupyterLab interface).
  • --name − set local container name.
docker run --rm -it -p 8888:8888 -v /path/to/notebooks:/home/jovyan/work --name lab elara

You can also start the container by running run_lab.sh passing in the port, volume, and local name as arguments:

sh run_lab.sh 8888 /path/to/notebooks lab

2.2 Starting JupyterLab using Docker Compose

You can also start the elara Jupyter Lab container with Docker Compose. Place a copy of elara's docker-compose.yml in the root directory of your project. Then run

docker compose up

Access the container at http://127.0.0.1:8888/lab?token=elara.

❗ By default stopped service containers created by docker compose up or docker compose run are not removed. To eliminate these one-off containers run the following command:

docker compose rm

2.3 Starting Jupyter notebook in a new container

Run the image, invoking the classic Jupyter notebook interface. Other flags:

  • --rm − automatically clean up the container and remove the file system when the container exits. Also removes anonymous volumes associated with the container.
  • -p − set the local port to 8888 and the container port to 8888 (required).
  • -v − bind local volume (name or abs path) to container volume (abs path).
  • --name − set local container name.
docker run --rm -it -p 8888:8888 -e DOCKER_STACKS_JUPYTER_CMD=notebook -v /path/to/notebooks:/home/jovyan/work --name notebook elara

You can also start the container by running run_notebook.sh passing in the port, volume, and local name as arguments:

sh run_notebook.sh 8888 /path/to/notebooks notebook

3.0 Dockerfile

Image based on Jupyter Docker Stacks jupyter/scipy-notebook which, in turn, is based on the jupyter/minimal-notebook.

For Jupyter Docker Stacks package installs see:

For additional elara package installs see requirements.txt.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.