2016-07-21 19 views
0

我想創建演示文稿等this從一個簡單的Jupyter筆記本開始。 我有什麼樣子:Jupyter靈獸基於幻燈片

enter image description here

鑑於這種情況,我期望得到一個幻燈片與對應於兩個小區的兩個幻燈片。 然後在命令行我執行:

jupyter nbconvert --to slides mynotebook.ipynb --post serve 

我得到的是一個靜態的HTML頁面,似乎組中的兩個我的細胞一起。

enter image description here

如何獲得每個鏈接的演示文稿的細胞效合一的幻燈片類型?

回答

0

您可能需要在您的nbconvert命令到reveal.js包的引用:

jupyter nbconvert --to slides --reveal-prefix="http://cdn.jsdelivr.net/reveal.js/2.5.0 mynotebook.ipynb --post serve 

或者,使用reveal.js的本地版本的說明,請參閱this blog post by Damian Avila

0

有你嘗試用你的瀏覽器打開生成的HTML?

我在VirtualBox中Lubuntu的一個新的同樣的問題安裝。它在我的主機系統(OSX)上運行正常(使用--post serve標誌),但不在VB中。我在互聯網上沒有找到太多東西,所以我只是嘗試用我的瀏覽器加載XXXX.slides.html文件,而且似乎已經解決了它。

摘要:

$ jupyter nbconvert --to slides --reveal-prefix ../reveal.js XXXX.ipynb # using "--post serve" fails 
$ firefox XXXX.slides.html 

希望這有助於!