将IPython笔记本导出到reveal.js时,如何分离幻灯片? [英] How do I separate slides when exporting an IPython notebook to reveal.js?
问题描述
当我使用
ipython nbconvert mynotebook.ipynb --to slides --post serve
我将所有内容作为单张幻灯片获取。如何将我的内容分成几张幻灯片?
I am getting all the content as a single slide. How do I separate my content into several slides?
我尝试使用 ---
(暗示此视频), \ n\\\
和
\ n ===
在笔记本内(作为单独的单元格和我的标题之前),但它没有改变任何东西。我知道对于reveal.js中的Markdown输入文件,可以设置数据分隔符
选项,但生成的html文件似乎不包含内容为Markdown,但是使用HTML标签内联所有内容,所以我不知道如何让IPython在我想要的地方生成新的幻灯片标签。
I tried using ---
(hinted in this video), \n\n\n
and ===
inside the notebook (as separate cells and before my titles), but it didn't change anything. I know that for a Markdown input file in reveal.js one can set the data-separator
option, but the generated html file doesn't seem to include the content as Markdown, but inlines everything using HTML tags, so I don't know how to make IPython generate new slide tags where I want them.
(我正在使用IPython 1.1安装pip)
(I'm using IPython 1.1 installed via pip)
推荐答案
在主工具栏中,选择幻灯片单元格工具栏。然后选择是否要让每个单元格成为新的幻灯片,子滑动,片段等等。
In main toolbar, select the "slideshow" cell toolbar. Then select if you want each cell to be a new "slide", "subslide","fragment"...etc
这篇关于将IPython笔记本导出到reveal.js时,如何分离幻灯片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!