Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Local copy of MathJax on a Jupyter notebook

I´m using the new Jupyter notebook (neé ipython notebook) and the docs indicate that it renders MathJax from a CDN. I have some situations when outside connections are blocked, so I need to configure a local copy of MathJax for all notebooks. How can I accomplish that?

like image 964
Ivan Avatar asked Aug 12 '15 12:08

Ivan


People also ask

How do I make a copy of a File in Jupyter Notebook?

Right-click on a file or directory and select “Copy Path” to copy the filesystem relative path.

Where are Jupyter notebooks saved locally?

Configuration files Config files are stored by default in the ~/. jupyter directory. Set this environment variable to use a particular directory, other than the default, for Jupyter config files.

How do I save my Jupyter Notebook locally?

Saving a Jupter notebook Saving your edits is simple. There is a disk icon in the upper left of the Jupyter tool bar. Click the save icon and your notebook edits are saved.


2 Answers

On Arch Linux, installing 'community/mathjax' solves the problem.

like image 185
basaundi Avatar answered Oct 01 '22 16:10

basaundi


As of 4.0 mathjax is part of the notebook as a dependency. There is no need for any extra installation.

I am currently experimenting with jupyter on a RaspberryPi. After installation of python 3.4 and jupyter I found MathJax in:

/usr/local/lib/python3.4/site-packages/notebook/static/components/MathJax

from my jupyter_notebook_config.py file:

# c.NotebookApp.mathjax_url = ''
c.NotebookApp.enable_mathjax = True

Credits go to @minrk who clarified this to me!

like image 36
kleinee Avatar answered Oct 01 '22 14:10

kleinee