How can I setup a "open in JupyterHub" button in GitLab?

Viewed 100

We are setting up a JupyterHub instance for my Company. I'd like to have a button "open in JupyterHub" in the GitLab page of every committed notebook in GitLab.

When clicked, the user would be transported to a running copy of the notebook in JupyterHub. It would be equivalent to a "Open in Collab" or "Open in Kaggle" button that some notebooks display: Open in Colab and Open in Kaggle buttons

I believe it would a great way to allow collaboration.

Maybe the button can trigger a clone or update action to the user JupyterHub and start a kernel with it.

How can we implement it?

1 Answers

There are many third party extensions for this. Consider something directly from major sources or websites, like the lab itself. BinderHub is one I personally use in my own scripts. Or you could create a script to directly modify it.

Related