IPython notebook to slides: Reveal is not defined

蹲街弑〆低调 提交于 2019-12-05 13:16:57
harshil

Saw in this answer that reveal.js version 3.0.0 isn't compatible with IPython, so the solution is to use an older version, e.g. ipython nbconvert --to slides analysis.ipynb --reveal-prefix "http://cdn.jsdelivr.net/reveal.js/2.6.2".

hobs

@harshil's answer is right on. But if you want a clean way to stay up-to-date with reveal.js and evolve with jupyter (ipython notebook), building on @Lev's answer is a bit better:

git submodule add https://github.com/hakimel/reveal.js.git
cd reveal.js
git checkout 2.6.0

And when ipython upgrades, you can just checkout that new version (tag) in your reveal.js git submodule.

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