Permalink
Browse files

add server/permission info in failed-mathjax dialog

It's now more clear that offline mathjax info is server-related.
  • Loading branch information...
1 parent e211da8 commit 8e5ff16a9357e0aa28d96c7f4f1cf6dfb95ab73d @minrk committed Dec 5, 2011
Showing with 12 additions and 8 deletions.
  1. +12 −8 IPython/frontend/html/notebook/static/js/notebookmain.js
@@ -28,28 +28,32 @@ $(document).ready(function () {
var dialog = $('<div></div>')
.append(
$("<p></p>").addClass('dialog').html(
- "Math/LaTeX equation rendering will be disabled."
+ "Math/LaTeX rendering will be disabled."
)
).append(
$("<p></p>").addClass('dialog').html(
- "With a working internet connection, you can install a local copy" +
- " of MathJax for offline use with the following command at a Python" +
- " or IPython prompt:"
+ "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:"
)
).append(
$("<pre></pre>").addClass('dialog').html(
">>> from IPython.external import mathjax; mathjax.install_mathjax()"
)
).append(
$("<p></p>").addClass('dialog').html(
- "This will try to install MathJax into the directory where you installed"+
- " IPython. If you installed IPython to a location that requires"+
- " administrative privileges to write, you will need to make this call as"+
+ "This will try to install MathJax into the IPython source directory."
+ )
+ ).append(
+ $("<p></p>").addClass('dialog').html(
+ "If IPython is installed to a location that requires" +
+ " administrative privileges to write, you will need to make this call as" +
" an administrator, via 'sudo'."
)
).append(
$("<p></p>").addClass('dialog').html(
- "Or you can instruct the notebook server to disable MathJax support altogether:"
+ "When you start the notebook server, you can instruct it to disable MathJax support altogether:"
)
).append(
$("<pre></pre>").addClass('dialog').html(

0 comments on commit 8e5ff16

Please sign in to comment.