Ivan
Ivan

Reputation: 20101

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?

Upvotes: 12

Views: 5812

Answers (3)

basaundi
basaundi

Reputation: 1795

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

Upvotes: 9

kleinee
kleinee

Reputation: 91

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!

Upvotes: 9

user5256224
user5256224

Reputation: 1

Open any notebook and write: From IPython.external import mathjax

Then you can read how to install by writing: 'mathjax?' but basically you execute a function 'install_mathjax()'. Haven't tried it though.

Upvotes: -1

Related Questions