Local copy of MathJax on a Jupyter notebook

血红的双手。 提交于 2021-02-07 11:42:06

问题


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?


回答1:


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




回答2:


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!




回答3:


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.



来源:https://stackoverflow.com/questions/31965667/local-copy-of-mathjax-on-a-jupyter-notebook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!