在Jupyter Notebook幻灯片中添加页码。

huangapple go评论66阅读模式
英文:

Add slide numbers to Jupyter Notebook Slides

问题

我想要为Jupyter Notebook幻灯片添加幻灯片编号。我在这个问题中找到了相关信息,但我不确定如何以及是否可以在Jupyter Notebook幻灯片中添加幻灯片编号。以下是一些可复制的代码来创建幻灯片演示:

# Jupyter Notebook 幻灯片

我想在这里添加幻灯片编号

在终端中使用以下命令:

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

所以我想知道是否有人知道如何在Jupyter Notebook幻灯片中添加页面编号?

英文:

I would like to add slide numbers to a Jupyter Notebook slideshow. I found an issue about this, but I am not sure how and if it possible to add slide numbers to your slides in Jupyter Notebook slideshow. Here is some reproducible code to make a slide show:

# Jupyter Notebook Slides

I would like to add a slide number here?

Using the command in the terminal:

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

So I was wondering if anyone knows how to add a page number to your slides in a Jupyter Notebook Slideshow?

答案1

得分: 0

正如评论中@Wayne所提到的,您可以使用以下命令:

jupyter nbconvert notebook_slides.ipynb --to slides --SlidesExporter.reveal_number='c/t'

输出:

在Jupyter Notebook幻灯片中添加页码。

如您所见,现在它有幻灯片编号!

英文:

As mentioned by @Wayne in the comments, you could use the following command:

jupyter nbconvert notebook_slides.ipynb --to slides --SlidesExporter.reveal_number='c/t'

Output:

在Jupyter Notebook幻灯片中添加页码。

As you can see it now has slide numbers!

huangapple
  • 本文由 发表于 2023年7月17日 18:32:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/76703598.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定