diff --git a/build/pkgs/notebook/jupyter_notebook_config.py b/build/pkgs/notebook/jupyter_notebook_config.py index 1ea31ce125f..e8f44402396 100644 --- a/build/pkgs/notebook/jupyter_notebook_config.py +++ b/build/pkgs/notebook/jupyter_notebook_config.py @@ -1,11 +1,5 @@ # Configuration file for Sage's builtin Jupyter notebook server -# Note for distributors: Sage uses mathjax, so the notebook server -# needs to have the mathjax_url set to wherever your distribution -# installs mathjax. - -c.NotebookApp.mathjax_url = 'nbextensions/mathjax/MathJax.js' - # Disable XSRF checking to fix Thebe. See # * https://trac.sagemath.org/ticket/22458 # * https://github.com/oreillymedia/thebe/issues/93 diff --git a/src/sage/repl/ipython_kernel/install.py b/src/sage/repl/ipython_kernel/install.py index fa3cf87f426..a1d3ec7efa7 100644 --- a/src/sage/repl/ipython_kernel/install.py +++ b/src/sage/repl/ipython_kernel/install.py @@ -20,7 +20,7 @@ from sage.env import ( SAGE_DOC, SAGE_VENV, SAGE_EXTCODE, SAGE_VERSION, - MATHJAX_DIR, THREEJS_DIR, + THREEJS_DIR, ) @@ -114,23 +114,6 @@ def symlink(self, src, dst): return os.symlink(src, dst) - def use_local_mathjax(self): - """ - Symlink SageMath's Mathjax install to the Jupyter notebook. - - EXAMPLES:: - - sage: from sage.repl.ipython_kernel.install import SageKernelSpec - sage: spec = SageKernelSpec(prefix=tmp_dir()) - sage: spec.use_local_mathjax() - sage: mathjax = os.path.join(spec.nbextensions_dir, 'mathjax') - sage: os.path.isdir(mathjax) - True - """ - src = MATHJAX_DIR - dst = os.path.join(self.nbextensions_dir, 'mathjax') - self.symlink(src, dst) - def use_local_threejs(self): """ Symlink threejs to the Jupyter notebook. @@ -255,7 +238,6 @@ def update(cls, *args, **kwds): """ instance = cls(*args, **kwds) - instance.use_local_mathjax() instance.use_local_threejs() instance._install_spec() instance._symlink_resources()