如何在IPython中重置MathJax设置?

时间:2023-01-12 23:35:21

I wanted to change the formatting of my equations in the IPython notebook (Jupyter) and right clicked on the equation to bring up the MathJax menu. I selected SVG as the rendering type. Now, I'm getting raw Latex in the notebook.

我想在IPython笔记本(Jupyter)中更改方程式的格式,然后右键单击方程式以显示MathJax菜单。我选择了SVG作为渲染类型。现在,我正在笔记本中获得原始乳胶。

Problem is I can't revert the change because I can't find any MathJax output to right click on! How can I reset the MathJax settings?

问题是我无法恢复更改,因为我找不到右键单击任何MathJax输出!如何重置MathJax设置?

I've tried reinstalling MathJax using IPython.external.mathjax, but that didn't work. I've also tried clearing the MathJax cache from within Safari preferences without luck.

我尝试使用IPython.external.mathjax重新安装MathJax,但这不起作用。我也试过从Safari首选项中清除MathJax缓存而没有运气。

[Update] I'm noticing I get two messages from MathJax in the bottom corner of my display as it loads. One is "Loading [MathJax]/extensions/Safe.js", the other is "File failed to load: http://localhost:8888/static/components/MathJax/jax/output/SVG/config.js"

[更新]我注意到,当我加载时,我从显示器底部的MathJax收到两条消息。一个是“Loading [MathJax] /extensions/Safe.js”,另一个是“文件无法加载:http:// localhost:8888 / static / components / MathJax / jax / output / SVG / config.js”

I think that later one must refer to the path in my Anaconda IPython install, but there is no SVG directory at all.

我想以后必须参考我的Anaconda IPython安装中的路径,但根本没有SVG目录。

How do I get MathJax to stop looking there?

我如何让MathJax停止在那里看?

1 个解决方案

#1


4  

When a user changes settings via the MathJax context menu, MathJax creates a domain-specific cookie mjx.menu. If you remove that cookie, MathJax will revert to the defaults configured by the page.

当用户通过MathJax上下文菜单更改设置时,MathJax会创建特定于域的cookie mjx.menu。如果删除该cookie,MathJax将恢复为页面配置的默认值。

#1


4  

When a user changes settings via the MathJax context menu, MathJax creates a domain-specific cookie mjx.menu. If you remove that cookie, MathJax will revert to the defaults configured by the page.

当用户通过MathJax上下文菜单更改设置时,MathJax会创建特定于域的cookie mjx.menu。如果删除该cookie,MathJax将恢复为页面配置的默认值。