pythonjupyter-notebookjupyterslideshowpage-numbering

Add slide numbers to Jupyter Notebook Slides


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?


Solution

  • 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:

    enter image description here

    As you can see it now has slide numbers!