summarylogtreecommitdiffstats
path: root/sagemath-python3-notebook.patch
diff options
context:
space:
mode:
authorAntonio Rojas2017-03-31 14:42:31 +0000
committerAntonio Rojas2017-03-31 14:42:31 +0000
commit5c17954de4c50c69026e1907169a0e29c02a9f90 (patch)
tree42e6c99f4683645116011c35073688d01e56d259 /sagemath-python3-notebook.patch
parentf5c2faf37930ff5787570f41e70cd14ae52cbf2f (diff)
downloadaur-5c17954de4c50c69026e1907169a0e29c02a9f90.tar.gz
Sync with stable
Diffstat (limited to 'sagemath-python3-notebook.patch')
-rw-r--r--sagemath-python3-notebook.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/sagemath-python3-notebook.patch b/sagemath-python3-notebook.patch
new file mode 100644
index 000000000000..cae22561547a
--- /dev/null
+++ b/sagemath-python3-notebook.patch
@@ -0,0 +1,27 @@
+diff --git a/src/bin/sage-notebook b/src/bin/sage-notebook
+index 74192da240..0ede281aad 100755
+--- a/src/bin/sage-notebook
++++ b/src/bin/sage-notebook
+@@ -96,8 +96,7 @@ class NotebookJupyter(object):
+ if not have_prerequisites():
+ print(self.PREREQUISITE_ERROR)
+ raise SystemExit(1)
+- from notebook.notebookapp import main
+- main(argv)
++ os.execvp('jupyter-notebook', ['jupyter-notebook'] + argv)
+
+
+ class SageNBExport(NotebookJupyter):
+diff --git a/src/sage/repl/ipython_kernel/install.py b/src/sage/repl/ipython_kernel/install.py
+index 3912b8cdf5..bd40cdadda 100644
+--- a/src/sage/repl/ipython_kernel/install.py
++++ b/src/sage/repl/ipython_kernel/install.py
+@@ -281,7 +281,6 @@ def have_prerequisites(debug=True):
+ True
+ """
+ try:
+- from notebook.notebookapp import NotebookApp
+ return True
+ except ImportError:
+ if debug:
+