Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Use versioned kernel name
Browse files Browse the repository at this point in the history
  • Loading branch information
kwankyu committed Apr 6, 2022
1 parent b397afc commit ecd6c78
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
5 changes: 0 additions & 5 deletions build/bin/sage-site
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,6 @@ if [ "$1" = "-docbuild" -o "$1" = "--docbuild" ]; then
export OMP_NUM_THREADS=1
fi

# Trac #33650: Make sure that user configuration of Jupyter does not
# shadow our sagemath kernel when jupyter-sphinx is invoked
export JUPYTER_CONFIG_DIR=/doesnotexist
export JUPYTER_CONFIG_PATH=/doesnotexist

exec sage-python -m sage_docbuild "$@" </dev/null
fi

Expand Down
6 changes: 3 additions & 3 deletions src/sage/docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import os
import sphinx
from sage.env import SAGE_DOC_SRC, SAGE_DOC, SAGE_SRC, THEBE_DIR, PPLPY_DOCS, MATHJAX_DIR
from sage.env import SAGE_VERSION, SAGE_DOC_SRC, SAGE_DOC, SAGE_SRC, THEBE_DIR, PPLPY_DOCS, MATHJAX_DIR
import sage.version
from sage.misc.sagedoc import extlinks
import dateutil.parser
Expand All @@ -26,7 +26,7 @@
'matplotlib.sphinxext.plot_directive',
'jupyter_sphinx']

jupyter_execute_default_kernel = 'sagemath'
jupyter_execute_default_kernel = 'sagemath' + SAGE_VERSION

jupyter_sphinx_thebelab_config = {
'requestKernel': True,
Expand All @@ -35,7 +35,7 @@
},
'kernelOptions': {
'name': "sagemath",
'kernelName': "sagemath",
'kernelName': jupyter_execute_default_kernel,
'path': ".",
},
}
Expand Down
4 changes: 2 additions & 2 deletions src/sage/repl/ipython_kernel/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ def identifier(cls):
sage: from sage.repl.ipython_kernel.install import SageKernelSpec
sage: SageKernelSpec.identifier()
'sagemath'
'sagemath...'
"""
return 'sagemath'
return 'sagemath' + SAGE_VERSION

def symlink(self, src, dst):
"""
Expand Down

0 comments on commit ecd6c78

Please sign in to comment.