Show More
@@ -136,7 +136,7 b' def extract_zip(fd, dest):' | |||||
136 | os.rename(os.path.join(parent, topdir), dest) |
|
136 | os.rename(os.path.join(parent, topdir), dest) | |
137 |
|
137 | |||
138 |
|
138 | |||
139 |
def install_mathjax(tag=' |
|
139 | def install_mathjax(tag='2.4.0', dest=default_dest, replace=False, file=None, extractor=extract_tar): | |
140 | """Download and/or install MathJax for offline use. |
|
140 | """Download and/or install MathJax for offline use. | |
141 |
|
141 | |||
142 | This will install mathjax to the nbextensions dir in your IPYTHONDIR. |
|
142 | This will install mathjax to the nbextensions dir in your IPYTHONDIR. | |
@@ -150,8 +150,8 b" def install_mathjax(tag='v2.2', dest=default_dest, replace=False, file=None, ext" | |||||
150 | Whether to remove and replace an existing install. |
|
150 | Whether to remove and replace an existing install. | |
151 | dest : str [IPYTHONDIR/nbextensions/mathjax] |
|
151 | dest : str [IPYTHONDIR/nbextensions/mathjax] | |
152 | Where to install mathjax |
|
152 | Where to install mathjax | |
153 |
tag : str [' |
|
153 | tag : str ['2.4.0'] | |
154 |
Which tag to download. Default is ' |
|
154 | Which tag to download. Default is '2.4.0', the current stable release, | |
155 | but alternatives include 'v1.1a' and 'master'. |
|
155 | but alternatives include 'v1.1a' and 'master'. | |
156 | file : file like object [ defualt to content of https://github.com/mathjax/MathJax/tarball/#{tag}] |
|
156 | file : file like object [ defualt to content of https://github.com/mathjax/MathJax/tarball/#{tag}] | |
157 | File handle from which to untar/unzip/... mathjax |
|
157 | File handle from which to untar/unzip/... mathjax |
General Comments 0
You need to be logged in to leave comments.
Login now