Interact is a JupyterHub hub-side service that can import remote notebooks into user accounts.
- Create virtual environment
python3 -m venv env. - Activate it.
source env/bin/activate. - Install
pip install -r requirements.txt. - Launch
python3 run.py. - Test
py.test tests.
Use py.test tests, or to see it in action:
- Run the server
python run.py --development. - From
remotestart another http serverpython -m http.server. This is a dummy for the remote website, serving example notebooks. - Visit
http://localhost:8002/?file=http://localhost:8000/test.ipynb - You will be redirected to the file on server; your browser may download instead of serving it.
- The file's contents will match that of remote/test.ipynb
See https://github.com/data-8/jupyterhub-deploy/tree/master/roles/interact.