Skip to content

Commit

Permalink
Update python-notebook to version 6.5.1 / rev 20 via SR 1031574
Browse files Browse the repository at this point in the history
https://build.opensuse.org/request/show/1031574
by user bnavigator + dimstar_suse
- Add notebook-pr6578+pr6580-404errors.patch
  * fix 404 errors at startup
  * gh#jupyter/notebook#6580 -- custom preload
  * gh#jupyter/notebook#6578 -- jquery from nbclassic
  • Loading branch information
bnavigator authored and bmwiedemann committed Oct 28, 2022
1 parent 7fb1910 commit a6ab046
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 1 deletion.
Binary file modified packages/p/python-notebook/.files
Binary file not shown.
11 changes: 11 additions & 0 deletions packages/p/python-notebook/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,15 @@
* Normalise os_path #6540 (@krassowski)</comment>
<requestid>1031319</requestid>
</revision>
<revision rev="20" vrev="2">
<srcmd5>debd2e6a5a22035d6d555dbd2a122573</srcmd5>
<version>6.5.1</version>
<time>1666978213</time>
<user>dimstar_suse</user>
<comment>- Add notebook-pr6578+pr6580-404errors.patch
* fix 404 errors at startup
* gh#jupyter/notebook#6580 -- custom preload
* gh#jupyter/notebook#6578 -- jquery from nbclassic</comment>
<requestid>1031574</requestid>
</revision>
</revisionlist>
60 changes: 60 additions & 0 deletions packages/p/python-notebook/notebook-pr6578+pr6580-404errors.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
From f68d5198b006108c860d27918720fdf6a7ab48bd Mon Sep 17 00:00:00 2001
From: RRosio <rosio_reyes@yahoo.com>
Date: Fri, 14 Oct 2022 09:13:31 -0700
Subject: [PATCH] update dependency path in static template

---
notebook/templates/page.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/notebook/templates/page.html b/notebook/templates/page.html
index 2237319037..927694e937 100644
--- a/notebook/templates/page.html
+++ b/notebook/templates/page.html
@@ -7,7 +7,7 @@
<title>{% block title %}Jupyter Notebook{% endblock %}</title>
{% block favicon %}<link id="favicon" rel="shortcut icon" type="image/x-icon" href="{{static_url("base/images/favicon.ico") }}">{% endblock %}
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <link rel="stylesheet" href="{{static_url("components/jquery-ui/themes/smoothness/jquery-ui.min.css") }}" type="text/css" />
+ <link rel="stylesheet" href="{{static_url("components/jquery-ui/dist/themes/smoothness/jquery-ui.min.css") }}" type="text/css" />
<link rel="stylesheet" href="{{static_url("components/jquery-typeahead/dist/jquery.typeahead.min.css") }}" type="text/css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">

@@ -39,7 +39,7 @@
text: 'components/requirejs-text/text',
bootstrap: 'components/bootstrap/dist/js/bootstrap.min',
bootstraptour: 'components/bootstrap-tour/build/js/bootstrap-tour.min',
- 'jquery-ui': 'components/jquery-ui/jquery-ui.min',
+ 'jquery-ui': 'components/jquery-ui/dist/jquery-ui.min',
moment: 'components/moment/min/moment-with-locales',
codemirror: 'components/codemirror',
termjs: 'components/xterm.js/xterm',

From ab71610669e7548f2e9050f98da80cf1eba675ae Mon Sep 17 00:00:00 2001
From: Eric Charles <eric@datalayer.io>
Date: Sun, 16 Oct 2022 11:36:45 +0200
Subject: [PATCH] Ensure custom preload is correctly handled

diff --git a/notebook/templates/page.html b/notebook/templates/page.html
index 927694e937..fb5d642f4e 100644
--- a/notebook/templates/page.html
+++ b/notebook/templates/page.html
@@ -98,6 +98,18 @@
}
})

+ // error-catching custom-preload.js shim.
+ define("custom-preload", function (require, exports, module) {
+ try {
+ var custom = require('custom/custom-preload');
+ console.debug('loaded custom-preload.js');
+ return custom;
+ } catch (e) {
+ console.error("error loading custom-preload.js", e);
+ return {};
+ }
+ })
+
document.nbjs_translations = {{ nbjs_translations|safe }};
document.documentElement.lang = navigator.language.toLowerCase();
</script>
8 changes: 8 additions & 0 deletions packages/p/python-notebook/python-notebook.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Oct 27 15:11:59 UTC 2022 - Ben Greiner <code@bnavigator.de>

- Add notebook-pr6578+pr6580-404errors.patch
* fix 404 errors at startup
* gh#jupyter/notebook#6580 -- custom preload
* gh#jupyter/notebook#6578 -- jquery from nbclassic

-------------------------------------------------------------------
Wed Oct 26 10:54:30 UTC 2022 - Ben Greiner <code@bnavigator.de>

Expand Down
4 changes: 3 additions & 1 deletion packages/p/python-notebook/python-notebook.spec
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ Group: Development/Languages/Python
URL: https://github.com/jupyter/notebook
Source0: https://files.pythonhosted.org/packages/source/n/notebook/notebook-%{version}.tar.gz
Source100: python-notebook-rpmlintrc
# PATCH-FIX-UPSTREAM notebook-pr6578+pr6580-404errors.patch gh#jupyter/notebook#6578 gh#jupyter/notebook#6580
Patch1: notebook-pr6578+pr6580-404errors.patch
BuildRequires: %{python_module jupyter-packaging >= 0.9}
BuildRequires: %{python_module nbclassic >= 0.4.0}
BuildRequires: %{python_module setuptools}
Expand Down Expand Up @@ -164,7 +166,7 @@ interactive computing.
This package pulls in the LaTeX dependencies for the Jupyter Notebook.

%prep
%setup -q -n notebook-%{version}
%autosetup -p1 -n notebook-%{version}
# unpin nbclassic (see https://github.com/jupyter/notebook/pull/6593)
sed -i 's/nbclassic==/nbclassic>=/' setup.py

Expand Down

0 comments on commit a6ab046

Please sign in to comment.