summarylogtreecommitdiffstats
path: root/sagemath-python3-notebook.patch
blob: cef38c4fde4759dd98d9f7d147ca3566982407e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 NotebookJupyterlab(object):
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
@@ -292,7 +292,6 @@ def have_prerequisites(debug=True):
         True
     """
     try:
-        from notebook.notebookapp import NotebookApp
         return True
     except ImportError:
         if debug: