Skip to content

Commit

Permalink
Add RetroLab Binder
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Sep 24, 2021
1 parent f5645d2 commit f7ea6da
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 7 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[![Build Status](https://github.com/jupyter-server/jupyverse/workflows/CI/badge.svg)](https://github.com/jupyter-server/jupyverse/actions)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/jupyter-server/jupyverse/HEAD?urlpath=jupyverse

# jupyverse

Expand All @@ -9,6 +8,10 @@

A set of [FPS](https://github.com/jupyter-server/fps) plugins implementing a Jupyter server.

Try it online:
- JupyterLab frontend: [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/jupyter-server/jupyverse/HEAD?urlpath=jupyverse-jlab)
- RetroLab frontend: [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/jupyter-server/jupyverse/HEAD?urlpath=jupyverse-rlab)


## Motivation for Experimental Server

Expand Down
31 changes: 25 additions & 6 deletions binder/jupyter_notebook_config.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,43 @@
jupyverse_command = ' '.join([
jupyverse_jlab_command = ' '.join([
'jupyverse',
'--no-open-browser',
'--authenticator.mode=noauth',
'--RetroLab.enables=false',
'--JupyterLab.collaborative',
'--JupyterLab.base_url={base_url}jupyverse/',
'--JupyterLab.base_url={base_url}jupyverse-jlab/',
'--port={port}',
] + ['>jupyverse.log 2>&1'])
] + ['>jupyverse_jlab.log 2>&1'])


jupyverse_rlab_command = ' '.join([
'jupyverse',
'--no-open-browser',
'--authenticator.mode=noauth',
'--JupyterLab.enables=false',
'--RetroLab.collaborative',
'--RetroLab.base_url={base_url}jupyverse-rlab/',
'--port={port}',
] + ['>jupyverse_rlab.log 2>&1'])


c.ServerProxy.servers = {
'jupyverse': {
'jupyverse-jlab': {
'command': [
'/bin/bash', '-c', jupyverse_jlab_command
],
'timeout': 60,
'absolute_url': False
},
'jupyverse-rlab': {
'command': [
'/bin/bash', '-c', jupyverse_command
'/bin/bash', '-c', jupyverse_rlab_command
],
'timeout': 60,
'absolute_url': False
},
}

c.NotebookApp.default_url = '/jupyverse'
c.NotebookApp.default_url = '/jupyverse-jlab'

import logging
c.NotebookApp.log_level = logging.DEBUG
1 change: 1 addition & 0 deletions binder/postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ mkdir fps \

python -m pip install .[jupyterlab] --no-deps
python -m pip install plugins/jupyterlab
python -m pip install plugins/retrolab
python -m pip install plugins/contents
python -m pip install plugins/kernels
python -m pip install plugins/terminals
Expand Down

0 comments on commit f7ea6da

Please sign in to comment.