Skip to content
Snippets Groups Projects
Commit a386c59a authored by Damian Alvarez's avatar Damian Alvarez
Browse files

Merge branch 'Jupyter' into '2023'

JupyterLab (minor update)

See merge request software-team/easybuild!2040
parents f2118a34 5a77fe49
Branches
No related tags found
No related merge requests found
...@@ -171,12 +171,14 @@ exts_list = [ ...@@ -171,12 +171,14 @@ exts_list = [
# jupyterlab #################################### # jupyterlab ####################################
('jupyterlab', local_jlab_version, { ('jupyterlab', local_jlab_version, {
'patches': [ 'patches': [
('401html.patch', 1), ('jupyterlab-silencenotify.patch', '.'),
('401.html', '.'),
# 'jupyterlab-rendermime_p14618.patch' # 'jupyterlab-rendermime_p14618.patch'
], ],
'checksums': [ 'checksums': [
'ac0cb19756be1d1e14b2be1f23c603de46e0f0113960fce9888889ca55ae8923', 'ac0cb19756be1d1e14b2be1f23c603de46e0f0113960fce9888889ca55ae8923',
'094c89560472168c5ca24b3907d4a6a5b090352ef0c7657995d735246cc338f5', # 401html.patch 'dd7b13106dab97cbbc23fdb5457025d0a28b9298da4b0f90e7ef93babe58b6b0', # jupyterlab-silencenotify.patch
'5c1591daa5a428ac6ecb83f6b48dbb8e4e32c152f8ef308ccc4e235ab0dd4903', # 401.html
], ],
}), }),
# jupyter-server-proxy ########################## # jupyter-server-proxy ##########################
...@@ -743,6 +745,19 @@ postinstallcmds = [ ...@@ -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_iframe',
'source %(builddir)s/env.sh && jupyter serverextension enable --py jupyterlab_s3_browser', '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 # 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' '{ cat >> %(installdir)s/etc/jupyter/jupyter_notebook_config.py; } << \'EOF\'\n'
...@@ -815,6 +830,12 @@ postinstallcmds = [ ...@@ -815,6 +830,12 @@ postinstallcmds = [
'EOF' '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 # 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, 'cp %%(builddir)s/jupyterlab/jupyterlab-%s/401.html %%(installdir)s/share/jupyter/lab/static/' % local_jlab_version,
......
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",
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment