##// END OF EJS Templates
update 1.1 to 2.0
Matthias BUSSONNIER -
Show More
@@ -51,6 +51,7 b' import tarfile'
51 import urllib2
51 import urllib2
52 import zipfile
52 import zipfile
53
53
54 from IPython.utils.path import locate_profile
54 #-----------------------------------------------------------------------------
55 #-----------------------------------------------------------------------------
55 #
56 #
56 #-----------------------------------------------------------------------------
57 #-----------------------------------------------------------------------------
@@ -129,7 +130,7 b" def install_mathjax(tag='v2.0', replace=False, file=None, extractor=extract_tar "
129 replace : bool [False]
130 replace : bool [False]
130 Whether to remove and replace an existing install.
131 Whether to remove and replace an existing install.
131 tag : str ['v2.0']
132 tag : str ['v2.0']
132 Which tag to download. Default is 'v1.1', the current stable release,
133 Which tag to download. Default is 'v2.0', the current stable release,
133 but alternatives include 'v1.1a' and 'master'.
134 but alternatives include 'v1.1a' and 'master'.
134 file : file like object [ defualt to content of https://github.com/mathjax/MathJax/tarball/#{tag}]
135 file : file like object [ defualt to content of https://github.com/mathjax/MathJax/tarball/#{tag}]
135 File handle from which to untar/unzip/... mathjax
136 File handle from which to untar/unzip/... mathjax
@@ -241,27 +242,27 b' python -c "from IPython.external.mathjax import install_mathjax; install_mathjax'
241 python -m IPython.external.mathjax -test -r
242 python -m IPython.external.mathjax -test -r
242
243
243 # view http://www.mathjax.org/download/ in your browser
244 # view http://www.mathjax.org/download/ in your browser
244 # save-as the link for MathJax-1.1 near the bottom of the page.
245 # save-as the link for MathJax-2.0 near the bottom of the page.
245 # The file it offers is mathjax-MathJax-v1.1-0-g5a7e4d7.zip
246 # The file it offers is mathjax-MathJax-v2.0-20-g07669ac.zip
246
247
247 python -m IPython.external.mathjax mathjax-MathJax-v1.1-0-g5a7e4d7.zip
248 python -m IPython.external.mathjax mathjax-MathJax-v2.0-20-g07669ac.zip
248 python -m IPython.external.mathjax -test -r
249 python -m IPython.external.mathjax -test -r
249
250
250 # download https://github.com/mathjax/MathJax/tarball/v1.1 in your browser
251 # download https://github.com/mathjax/MathJax/tarball/v2.0 in your browser
251 # (this is the url used internally by install_mathjax)
252 # (this is the url used internally by install_mathjax)
252 # The file it offers is mathjax-MathJax-v1.1-0-g5a7e4d7.tar.gz
253 # The file it offers is mathjax-MathJax-v2.0-20-g07669ac.tar.gz
253
254
254 python -m IPython.external.mathjax mathjax-MathJax-v1.1-0-g5a7e4d7.tar.gz
255 python -m IPython.external.mathjax mathjax-MathJax-v2.0-20-g07669ac.tar.gz
255
256
256 python -m IPython.external.mathjax -test
257 python -m IPython.external.mathjax -test
257 # note no -r
258 # note no -r
258
259
259 # install it again while it is already there
260 # install it again while it is already there
260
261
261 python -m IPython.external.mathjax mathjax-MathJax-v1.1-0-g5a7e4d7.tar.gz
262 python -m IPython.external.mathjax mathjax-MathJax-v2.0-20-g07669ac.tar.gz
262 # says "offline MathJax apparently already installed"
263 # says "offline MathJax apparently already installed"
263
264
264 python -m IPython.external.mathjax ~/mathjax-MathJax-v1.1-0-g5a7e4d7.tar.gz
265 python -m IPython.external.mathjax ~/mathjax-MathJax-v2.0-20-g07669ac.tar.gz
265 python -m IPython.external.mathjax -test
266 python -m IPython.external.mathjax -test
266
267
267
268
@@ -348,10 +348,10 b' A quick and easy method is to install it from a python session::'
348 install_mathjax()
348 install_mathjax()
349
349
350 If you need tighter configuration control, you can download your own copy
350 If you need tighter configuration control, you can download your own copy
351 of MathJax from http://www.mathjax.org/download/ - use the MathJax-1.1 link.
351 of MathJax from http://www.mathjax.org/download/ - use the MathJax-2.0 link.
352 When you have the file stored locally, install it with::
352 When you have the file stored locally, install it with::
353
353
354 python -m IPython.external.mathjax /path/to/source/mathjax-MathJax-v1.1-0-g5a7e4d7.zip
354 python -m IPython.external.mathjax /path/to/source/mathjax-MathJax-v2.0-20-g07669ac.zip
355
355
356 For unusual needs, IPython can tell you what directory it wants to find MathJax in::
356 For unusual needs, IPython can tell you what directory it wants to find MathJax in::
357
357
General Comments 0
You need to be logged in to leave comments. Login now