From 3d49cf3b279eec10c76148bd20aaa788b59f4e38 Mon Sep 17 00:00:00 2001
From: Min RK
Date: Sat, 22 Aug 2015 19:42:42 -0700
Subject: [PATCH] remove large, wrong MathJax warning
when MathJax fails to load.
It points to installing local mathjax, which doesn't make sense anymore now that we ship it as a dependency.
---
notebook/static/notebook/js/mathjaxutils.js | 43 ++-------------------
1 file changed, 3 insertions(+), 40 deletions(-)
diff --git a/notebook/static/notebook/js/mathjaxutils.js b/notebook/static/notebook/js/mathjaxutils.js
index 11a220250..e98158fab 100644
--- a/notebook/static/notebook/js/mathjaxutils.js
+++ b/notebook/static/notebook/js/mathjaxutils.js
@@ -33,48 +33,11 @@ define([
MathJax.Hub.Configured();
} else if (window.mathjax_url !== "") {
// Don't have MathJax, but should. Show dialog.
- var message = $('')
- .append(
- $("
").addClass('dialog').text(
- "Math/LaTeX rendering will be disabled."
- )
- ).append(
- $("").addClass('dialog').text(
- "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 Jupyter prompt:"
- )
- ).append(
- $("").addClass('dialog').text(
- ">>> from Jupyter.external import mathjax; mathjax.install_mathjax()"
- )
- ).append(
- $("").addClass('dialog').text(
- "This will try to install MathJax into the Jupyter source directory."
- )
- ).append(
- $("").addClass('dialog').text(
- "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'."
- )
- ).append(
- $("").addClass('dialog').text(
- "When you start the notebook server, you can instruct it to disable MathJax support altogether:"
- )
- ).append(
- $("").addClass('dialog').text(
- "$ ipython notebook --no-mathjax"
- )
- ).append(
- $("").addClass('dialog').text(
- "which will prevent this dialog from appearing."
- )
- );
dialog.modal({
title : "Failed to retrieve MathJax from '" + window.mathjax_url + "'",
- body : message,
+ body : $("").addClass('dialog').text(
+ "Math/LaTeX rendering will be disabled."
+ ),
buttons : {
OK : {class: "btn-danger"}
}