Skip to content


Repository files navigation

A Jupiter Notebook Gallery: Juno's Exploratory

Build Status Maintainability Test Coverage

This django app creates a website that interfaces with an external API (right now only with the one of Open Humans) to import Jupyter Notebooks.

Through the app:

  • users can import their own .ipynb Notebook files
  • Imported Notebooks are rendered right in the app and
    • can be liked
    • commented
  • Notebooks in the gallery can be exported with a one-click solution into an existing Jupyter Hub installation.

That way it's easy to build a community around sharing and re-using notebooks. See below for some GIF examples:

Sharing a notebook right from the Jupyter Notebook

Opening a notebook right from the Gallery


For the whole setup to work your singleuser JupyterHub image needs to install & activate 3 extensions to Jupyter:

custom bundler

A custom bundler is needed to add the Share Notebook menu item. It can be found at gedankenstuecke/jupyter-bundler-openhumans. An easy way to install the bundler and nbextension provided by this python package is:

git clone
cd jupyter-bundler-openhumans
pip install -e .
jupyter bundlerextension enable --py oh_bundler
jupyter nbextension install --py oh_bundler --sys-prefix
jupyter nbextension enable --py oh_bundler --sys-prefix

Per default the post-sharing redirect will lead to See the repository for more details on the settings.

custom URL handler

This handler is needed for accepting a file in the Jupyter setup when being pushed from the gallery app. The handler Python module is in gedankenstuecke/jupyter-notebook-importer. The easiest way to install it locally is:

git clone
cd jupyter-notebook-importer
pip install -e .
jupyter serverextension enable --py oh_notebook_importer


This app was build with the idea to be deployed to heroku. If you already have the heroku CLI installed all you should need to do to start the application locally is:

pipenv install --dev
pipenv shell
heroku local:run ./ migrate
heroku local

Now your local heroku app should run and be accessible from

Most likely it will not work completely unless you have set up some .env file in this directory with the following settings:


what should be in the .env file:

# the usual stuff for a django app that interfaces with open humans:

# the only UNusual stuff:
# the JUPYTERHUB_BASE_URL should be the local
# jupyter notebook url if running in dev
# or
# for production
JUPYTERHUB_BASE_URL = http://localhost:8888


No releases published


No packages published