Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JupyterHub interface #4

Open
dvanic opened this issue Jun 10, 2020 · 2 comments
Open

JupyterHub interface #4

dvanic opened this issue Jun 10, 2020 · 2 comments

Comments

@dvanic
Copy link

dvanic commented Jun 10, 2020

Is there documentation for interfacing to a JupyterHub instance to visualise the results of a specific set of measurements, for example?

@FlorianRhiem
Copy link
Member

SampleDB directs the user to a URL depending on the SAMPLEDB_JUPYTERHUB_URL and the notebook settings in the action schema, containing selected metadata from the measurement.

What happens then is largely dependent on the configuration of the JupyterHub (e.g. which spawner is used, which authenticator is used, which volumes are mounted in the individual notebook server containers in case of a kubespawner for example) and storage system. As a result, it is difficult to generalize the webapp that inserts the metadata into a notebook and redirects the user to that notebook.

I'll document the general process and try to produce a small example for such a webapp, working with local files. However each use case will need alterations, e.g. if the JupyterHub mounts user's directories from one of several NFS servers, the webapp should write the notebook not to a local file but to the correct path on that NFS server, etc.

@FlorianRhiem
Copy link
Member

I've uploaded a Flask blueprint for building a notebook templating server. I've also added a page on JupyterHub support to the new Administrator guide, which goes through the steps of what's necessary for interfacing with a JupyterHub instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants