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

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?



Solution 1:[1]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Aarav Dave