blob: 54e162a5992975d266f892a1c984f7dcf7e9779c (
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
@@ -95,8 +95,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
@@ -303,7 +303,6 @@ def have_prerequisites(debug=True):
True
"""
try:
- from notebook.notebookapp import NotebookApp
return True
except ImportError:
if debug:
|