gpt4 book ai didi

python - Jupyter 笔记本上 MathJax 的本地副本

转载 作者:太空狗 更新时间:2023-10-29 20:45:21 26 4
gpt4 key购买 nike

我正在使用新的 Jupyter notebook(neé ipython notebook)并且文档表明它从 CDN 呈现 MathJax。我有一些外部连接被阻止的情况,所以我需要为所有笔记本配置 MathJax 的本地副本。我怎样才能做到这一点?

最佳答案

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

我目前正在 RaspberryPi 上试验 jupyter。安装 python 3.4 和 jupyter 后,我在以下位置找到了 MathJax:

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

来 self 的 jupyter_notebook_config.py 文件:

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

归功于@minrk,他向我澄清了这一点!

关于python - Jupyter 笔记本上 MathJax 的本地副本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31965667/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com