Sign inSign up

jaeo/lifranum-notebook

By jaeo

•Updated about 5 years ago

Image
0

199

jaeo/lifranum-notebook repository overview

⁠Jupyter Notebook with AUT toolkit

Jupyter Notebook configured with the AUT toolkit⁠. This notebook is a custom version of the pyspark-notebook docker stack developped by the Jupyter team (cf. Jupyter docker stacks⁠).

⁠Features

  • AUT toolkit ready
  • Compatible with Google Colab

⁠Usage

Start jupyter notebook using docker-compose:

docker-compose up

Visit http://localhost:8888⁠

⁠Configuration

The following parameters are configured in the notebook by default (cf. Dockerfile):

Spark (spark-defaults.conf⁠)

spark.driver.extraClassPath=/aut/aut-$AUT_VERSION-fatjar.jar
spark.submit.pyFiles=/aut/aut-$AUT_VERSION.zip
spark.driver.extraJavaOptions="-Dio.netty.tryReflectionSetAccessible=true"
spark.executor.extraJavaOptions="-Dio.netty.tryReflectionSetAccessible=true"

Jupyter (jupyter_notebook_config.py⁠)

c.NotebookApp.allow_origin = "https://colab.research.google.com"
c.NotebookApp.port_retries = 0
c.NotebookApp.open_browser = False
c.NotebookApp.base_url     = "/"

⁠Image building

Modify requirements.txt for updating the list of python packages available in the image.

docker-compose build --force-rm

⁠Use as Colab Local Runtime

  1. Go to Google Colab⁠.
  2. Open a notebook.
  3. Open the connection options and select "Connect to local runtime" (cf. image below).
  4. Connect to Jypyter local instance: http://localhost:8888/ (Jupyter listens on port 8888 by default).

Select Colab Local Runtime

⁠TODO

  • Verify compatibility with Jupyterhub

Tag summary

Content type

Image

Digest

Size

1.7 GB

Last updated

about 5 years ago

docker pull jaeo/lifranum-notebook