remove dependencies to namespace in Mathjaxutils

Matthias Bussonnier 11 years ago
parent a081af3cd2
commit 0ff2b07242

@ -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

@ -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(
$("<pre></pre>").addClass('dialog').text(
">>> from IPython.external import mathjax; mathjax.install_mathjax()"
">>> from Jupyter.external import mathjax; mathjax.install_mathjax()"
)
).append(
$("<p></p>").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(
$("<p></p>").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;
});

Loading…
Cancel
Save