Difference between revisions of "Jupyter"

From Media Design: Networked & Lens-Based wiki
Jump to navigation Jump to search
 
(21 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
== jupyterpi ==
 +
 +
The sandbox + sandbot installs of jupyter are documented in the following git repo:
 +
 +
https://git.xpub.nl/XPUB/jupyterpi
 +
 +
In sum, we have found that running 10-12 independent jupyters per user was much more stable and less demanding than the TLDH install.
 +
 +
Notes on the installation of the pi of 2021-2023 are here: [[JupyterPi]]
 +
 +
=== HTML view ===
 +
 +
In terms of loosening security (useful for local web testing via the jupyter tabs)...
 +
 +
* https://stackoverflow.com/questions/42233102/how-to-create-an-insecure-jupyter-server
 +
* https://github.com/jupyter/jupyter/issues/79
 +
 +
"CORS" errors on ajax calls:
 +
 +
  c.NotebookApp.allow_origin = '*'
 +
 +
 +
== First experimentations (not active anymore) ==
 +
 
We have an installation based on [https://tljh.jupyter.org TLDH]
 
We have an installation based on [https://tljh.jupyter.org TLDH]
  
At the moment the install is https://jupyter.vandal.ist/
+
At the moment the install is https://notebook.xpub.nl/
  
 
It was installed on a VPS on OVH following [https://tljh.jupyter.org/en/latest/install/ovh.html these instructions]
 
It was installed on a VPS on OVH following [https://tljh.jupyter.org/en/latest/install/ovh.html these instructions]
  
We installed the git extension with:
+
* https://tljh.jupyter.org/en/latest/howto/content/share-data.html
 +
* https://tljh.jupyter.org/en/latest/howto/env/notebook-interfaces.html
 +
 
 +
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
 
   sudo -E conda install jupyterlab-git -c conda-forge
  
* https://tljh.jupyter.org/en/latest/howto/content/share-data.html
+
* https://www.npmjs.com/package/@jupyterlab/git
 +
 
 +
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
 +
 
 +
* [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%2F&branch=master etherpad-changesets]
 +
* [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.git%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.git%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)

Latest revision as of 17:35, 20 September 2021

jupyterpi

The sandbox + sandbot installs of jupyter are documented in the following git repo:

https://git.xpub.nl/XPUB/jupyterpi

In sum, we have found that running 10-12 independent jupyters per user was much more stable and less demanding than the TLDH install.

Notes on the installation of the pi of 2021-2023 are here: JupyterPi

HTML view

In terms of loosening security (useful for local web testing via the jupyter tabs)...

"CORS" errors on ajax calls:

 c.NotebookApp.allow_origin = '*'


First experimentations (not active anymore)

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)