diff --git a/notebook/static/base/js/namespace.js b/notebook/static/base/js/namespace.js index 9e0256a96..61df64d50 100644 --- a/notebook/static/base/js/namespace.js +++ b/notebook/static/base/js/namespace.js @@ -40,6 +40,7 @@ define(function(){ jprop('security','base/js/security'); jprop('keyboard','base/js/keyboard'); jprop('dialog','base/js/dialog'); + jprop('mathjaxutils','notebook/js/mathjaxutils'); //// exposed constructors diff --git a/notebook/static/notebook/js/mathjaxutils.js b/notebook/static/notebook/js/mathjaxutils.js index 6b82c8920..11a220250 100644 --- a/notebook/static/notebook/js/mathjaxutils.js +++ b/notebook/static/notebook/js/mathjaxutils.js @@ -2,11 +2,10 @@ // Distributed under the terms of the Modified BSD License. define([ - 'base/js/namespace', 'jquery', 'base/js/utils', 'base/js/dialog', -], function(IPython, $, utils, dialog) { +], function($, utils, dialog) { "use strict"; var init = function () { @@ -44,19 +43,19 @@ define([ "If you have administrative access to the notebook server and" + " a working internet connection, you can install a local copy" + " of MathJax for offline use with the following command on the server" + - " at a Python or IPython prompt:" + " at a Python or Jupyter prompt:" ) ).append( $("
").addClass('dialog').text(
-                        ">>> from IPython.external import mathjax; mathjax.install_mathjax()"
+                        ">>> from Jupyter.external import mathjax; mathjax.install_mathjax()"
                     )
                 ).append(
                     $("

").addClass('dialog').text( - "This will try to install MathJax into the IPython source directory." + "This will try to install MathJax into the Jupyter source directory." ) ).append( $("

").addClass('dialog').text( - "If IPython is installed to a location that requires" + + "If Jupyter is installed to a location that requires" + " administrative privileges to write, you will need to make this call as" + " an administrator, via 'sudo'." ) @@ -246,7 +245,5 @@ define([ replace_math : replace_math }; - IPython.mathjaxutils = mathjaxutils; - return mathjaxutils; });