Jupyter: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 19: Line 19:
Also the constand polling of the git interface is disturbing...
Also the constand polling of the git interface is disturbing...


In contrast the promise of a simple way to import repos into a notebook seems good, but it's not (yet) working (needs some kind of plugin?):
nbgitpuller link generator: https://jupyterhub.github.io/nbgitpuller/link?hub=https://notebook.xpub.nl
 
https://jupyter.vandal.ist/hub/lti/launch?next=%2Fuser-redirect%2Fgit-pull?repo%3Dhttps%253A%252F%252Fgitlab.constantvzw.org%252Fxpub1%252F2020-prototoyping-notebooks%26branch%3Dmaster%26urlpath%3Dlab%252Ftree%252F2020-prototoyping-notebooks%252F%253Fautodecode
 
Another try using: https://jupyterhub.github.io/nbgitpuller/link?hub=https://notebook.xpub.nl


https://notebook.xpub.nl/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgit.xpub.nl%2FXPUB%2F2020-prototyping-notebooks.git&urlpath=lab%2Ftree%2F2020-prototyping-notebooks%2F&branch=master
https://notebook.xpub.nl/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgit.xpub.nl%2FXPUB%2F2020-prototyping-notebooks.git&urlpath=lab%2Ftree%2F2020-prototyping-notebooks%2F&branch=master
Line 30: Line 26:
* [https://notebook.xpub.nl/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgit.xpub.nl%2FXPUB%2Fetherpad-changesets.git&urlpath=lab%2Ftree%2Fetherpad-changesets%2Findex.ipynb&branch=master etherpad-changesets/index.ipynb]
* [https://notebook.xpub.nl/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgit.xpub.nl%2FXPUB%2Fetherpad-changesets.git&urlpath=lab%2Ftree%2Fetherpad-changesets%2Findex.ipynb&branch=master etherpad-changesets/index.ipynb]
* [https://notebook.xpub.nl/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgit.xpub.nl%2FXPUB%2Fetherpad-changesets.git&urlpath=tree%2Fetherpad-changesets%2Findex.ipynb&branch=master etherpad-changesets (classic notebook view)]
* [https://notebook.xpub.nl/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgit.xpub.nl%2FXPUB%2Fetherpad-changesets.git&urlpath=tree%2Fetherpad-changesets%2Findex.ipynb&branch=master etherpad-changesets (classic notebook view)]
OK this seems to work, and each time you click on the link it pulls the repo -- merging if necessary! (important for people to realize if they make changes to be sure they want to merge when clicking)
OK this seems to work, and each time you click on the link it pulls the repo -- merging if necessary! (important for people to realize if they make changes to be sure they want to merge when clicking)

Revision as of 17:59, 9 September 2020

We have an installation based on TLDH

At the moment the install is https://notebook.xpub.nl/

It was installed on a VPS on OVH following these instructions

In the end used "lab" and not "jupyterlab" for the user_environment setting.

Installed the git extension with:

 sudo -E conda install jupyterlab-git -c conda-forge

But maybe considering uninstalling this... it's not super well integrated ... pulling changes leaves the notebook in a weird detached state -- need to close and reopen notebooks to see changes. Also the constand polling of the git interface is disturbing...

nbgitpuller link generator: https://jupyterhub.github.io/nbgitpuller/link?hub=https://notebook.xpub.nl

https://notebook.xpub.nl/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgit.xpub.nl%2FXPUB%2F2020-prototyping-notebooks.git&urlpath=lab%2Ftree%2F2020-prototyping-notebooks%2F&branch=master

OK this seems to work, and each time you click on the link it pulls the repo -- merging if necessary! (important for people to realize if they make changes to be sure they want to merge when clicking)