From a094ada13739fb157d2fec86dfea60115b0a314e Mon Sep 17 00:00:00 2001 From: MinRK Date: Sat, 20 Aug 2011 15:52:25 -0700 Subject: [PATCH 1/2] Add utility function for installing mathjax for offline use from IPython.external.mathjax import install_mathjax install_mathjax() * add mathjax destination to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index b455e338b..45370cef0 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ _build docs/man/*.gz docs/source/api/generated docs/gh-pages +IPython/frontend/html/notebook/static/mathjax *.py[co] build *.egg-info From 638bc02a8fd916678ac0310d9e3b02d1c988a3e3 Mon Sep 17 00:00:00 2001 From: MinRK Date: Sat, 20 Aug 2011 15:58:28 -0700 Subject: [PATCH 2/2] update notebook template to prefer offline mathjax --- IPython/frontend/html/notebook/templates/notebook.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/IPython/frontend/html/notebook/templates/notebook.html b/IPython/frontend/html/notebook/templates/notebook.html index a114023a6..e1e603b0b 100644 --- a/IPython/frontend/html/notebook/templates/notebook.html +++ b/IPython/frontend/html/notebook/templates/notebook.html @@ -10,12 +10,14 @@ - - + +