summaryrefslogtreecommitdiff
path: root/libre/sagemath/jupyter-path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libre/sagemath/jupyter-path.patch')
-rw-r--r--libre/sagemath/jupyter-path.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/libre/sagemath/jupyter-path.patch b/libre/sagemath/jupyter-path.patch
new file mode 100644
index 000000000..3201e9a6e
--- /dev/null
+++ b/libre/sagemath/jupyter-path.patch
@@ -0,0 +1,31 @@
+--- src/sage/repl/ipython_kernel/install.py.orig 2015-10-23 19:23:39.728456590 +0000
++++ src/sage/repl/ipython_kernel/install.py 2015-10-23 19:24:00.965018978 +0000
+@@ -13,8 +13,7 @@
+ SAGE_ROOT, SAGE_DOC, SAGE_LOCAL, SAGE_EXTCODE,
+ SAGE_VERSION
+ )
+-from jupyter_core.paths import ENV_JUPYTER_PATH
+-JUPYTER_PATH = ENV_JUPYTER_PATH[0]
++JUPYTER_PATH = os.environ.get('JUPYTER_PATH')
+
+ class SageKernelSpec(object):
+
+@@ -151,7 +151,7 @@
+ '{connection_file}']
+ """
+ return [
+- os.path.join(SAGE_ROOT, 'sage'),
++ os.path.join(SAGE_ROOT, 'bin', 'sage'),
+ '--python',
+ '-m', 'sage.repl.ipython_kernel',
+ '-f', '{connection_file}',
+@@ -208,7 +208,7 @@
+ sage: spec._symlink_resources() # not tested
+ """
+ path = os.path.join(SAGE_EXTCODE, 'notebook-ipython')
+- for filename in os.listdir(path):
++ for filename in os.listdir('ext/notebook-ipython'):
+ self.symlink(
+ os.path.join(path, filename),
+ os.path.join(self.kernel_dir, filename)
+