如何将ipython笔记本线程发布到Wordpress博客中? [英] How to post ipython notebook thread into Wordpress blog?
本文介绍了如何将ipython笔记本线程发布到Wordpress博客中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道nbconvert,并且能够将笔记本文件转换为html,但是我找不到将这个html文件嵌入到wordpress中的方法.有没有尝试过并成功的人?
I know nbconvert and I am able to convert notebook file into html but I cannot find a way to embed this html file into wordpress. Is there anyone who tried and succeed?
推荐答案
我们可以使用简单Mathjax Plugi n.为此,请按照以下步骤操作:
We can solve this issue using Simple Mathjax Plugin. For that please follow the below steps:
- 安装并激活插件.
- 禁用WordPress HTML代码解析(这是用于在HTML输出中显示图像).
- 在文本选项卡中复制并粘贴nbconvert的HTML输出(
<body>
标记内的内容).
- Install and Activate the plugin.
- Disable WordPress HTML code parsing(this is for displaying the images in the HTML output).
- Copy and paste the HTML output of nbconvert (content inside the
<body>
tag) in the Text tab.
这篇关于如何将ipython笔记本线程发布到Wordpress博客中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文