diff --git a/Golden_Repo/j/JupyterLab/JupyterLab-2023.3.6-GCCcore-11.3.0.eb b/Golden_Repo/j/JupyterLab/JupyterLab-2023.3.6-GCCcore-11.3.0.eb index 9ca5fcf41bc983f9b2344e44626aa8fb9689397f..77362b588f719bafcb953a0f8783b2af66e6134a 100644 --- a/Golden_Repo/j/JupyterLab/JupyterLab-2023.3.6-GCCcore-11.3.0.eb +++ b/Golden_Repo/j/JupyterLab/JupyterLab-2023.3.6-GCCcore-11.3.0.eb @@ -171,12 +171,14 @@ exts_list = [ # jupyterlab #################################### ('jupyterlab', local_jlab_version, { 'patches': [ - ('401html.patch', 1), + ('jupyterlab-silencenotify.patch', '.'), + ('401.html', '.'), # 'jupyterlab-rendermime_p14618.patch' ], 'checksums': [ 'ac0cb19756be1d1e14b2be1f23c603de46e0f0113960fce9888889ca55ae8923', - '094c89560472168c5ca24b3907d4a6a5b090352ef0c7657995d735246cc338f5', # 401html.patch + 'dd7b13106dab97cbbc23fdb5457025d0a28b9298da4b0f90e7ef93babe58b6b0', # jupyterlab-silencenotify.patch + '5c1591daa5a428ac6ecb83f6b48dbb8e4e32c152f8ef308ccc4e235ab0dd4903', # 401.html ], }), # jupyter-server-proxy ########################## @@ -743,6 +745,19 @@ postinstallcmds = [ 'source %(builddir)s/env.sh && jupyter serverextension enable --py jupyterlab_iframe', 'source %(builddir)s/env.sh && jupyter serverextension enable --py jupyterlab_s3_browser', + # jupyter-archive, server-settings (with commented lines the defaults are used) + # ( + # '{ cat >> %(installdir)s/etc/jupyter/jupyter_server_config.d/jupyter-archive.json; } << \'EOF\'\n' + # '{\n' + # ' "JupyterArchive": {\n' + # ' "stream_max_buffer_size": 104857600, // max size of tornado IOStream buffer\n' + # ' "handler_max_buffer_length": 10240, // max length of chunks in tornado RequestHandler\n' + # ' "archive_download_flush_delay": 100 // delay in ms at which the chunk of data is send to the client\n' + # ' }\n' + # '}\n' + # 'EOF' + # ) + # jupyterlab-latex fix for https://github.com/jupyterlab/jupyterlab-latex/issues/110#issuecomment-1241460371 ( '{ cat >> %(installdir)s/etc/jupyter/jupyter_notebook_config.py; } << \'EOF\'\n' @@ -815,6 +830,12 @@ postinstallcmds = [ 'EOF' ), + # disable notifications about new JupyterLab versions + ( + 'patch "%%(installdir)s/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/notification.json" ' + ' < %%(builddir)s/jupyterlab/jupyterlab-%s/jupyterjupyterlab-silencenotify.patch' + ) % local_jlab_version, + # add webpage, which leads back to https://jupyter-jsc.fz-juelich.de 'cp %%(builddir)s/jupyterlab/jupyterlab-%s/401.html %%(installdir)s/share/jupyter/lab/static/' % local_jlab_version, diff --git a/Golden_Repo/j/JupyterLab/jupyterlab-silencenotify.patch b/Golden_Repo/j/JupyterLab/jupyterlab-silencenotify.patch new file mode 100644 index 0000000000000000000000000000000000000000..f31f604b77a0e826a51755bb6cecda663b767332 --- /dev/null +++ b/Golden_Repo/j/JupyterLab/jupyterlab-silencenotify.patch @@ -0,0 +1,12 @@ +diff -Naur jupyterlab.orig/jupyterlab-3.6.5/jupyterlab/schemas/@jupyterlab/apputils-extension/notification.json jupyterlab/jupyterlab-3.6.5/jupyterlab/schemas/@jupyterlab/apputils-extension/notification.json +--- jupyterlab.orig/jupyterlab-3.6.5/jupyterlab/schemas/@jupyterlab/apputils-extension/notification.json 2023-06-26 18:37:41.000000000 +0200 ++++ jupyterlab/jupyterlab-3.6.5/jupyterlab/schemas/@jupyterlab/apputils-extension/notification.json 2023-08-16 13:22:27.187215117 +0200 +@@ -29,7 +29,7 @@ + "title": "Check for JupyterLab updates", + "description": "Whether to check for newer version of JupyterLab or not. It requires `fechNews` to be `true` to be active. If `true`, it will make a request to a website.", + "type": "boolean", +- "default": true ++ "default": false + }, + "doNotDisturbMode": { + "title": "Silence all notifications",