小编Man*_*ral的帖子

主机reveal.js幻灯片(.html)[Jupyter笔记本导出]作为非本地服务器上的网页

我目前正在开发 Jupyter Notebook。我设法将其导出为 Reveal.js 幻灯片 (.html) 并将其托管在我的本地服务器上。我在终端中使用了以下命令行:

jupyter nbconvert <mynotebookname>.ipynb --to slides --post serve
Run Code Online (Sandbox Code Playgroud)

它生成一个<mynotebookname>.slides.html文件并在浏览器中打开它,我可以在其中正确浏览幻灯片(如https://revealjs.com上的示例所示)。

但是,如果我将此文件上传到大学服务器上的“web”文件夹(我通常上传任何我想作为网页查看的 html 文件),我会得到一个包含笔记本内容的可滚动页面。它不提供与本地服务器上相同的幻灯片视角。

我想将其作为网页提供,以便我可以与其他人分享。我缺少什么?

html reveal.js server jupyter-notebook

3
推荐指数
1
解决办法
1967
查看次数

标签 统计

html ×1

jupyter-notebook ×1

reveal.js ×1

server ×1