Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Interactive Jupyter/IPython notebooks in slideshow mode?

Is it possible to run Jupyter Notebooks in an interactive slideshow mode? That is, Python kernel would be running in the background and I can modify and execute cells.

The following command generates HTML slideshow and I can't modify nor execute the cells:

jupyter nbconvert mynotebook.ipynb --to slides --post serve
like image 883
Jaakko Luttinen Avatar asked Feb 03 '16 09:02

Jaakko Luttinen


People also ask

How do you do a Slideshow in Jupyter Notebook?

The first step is to enable the Slideshow option in the View > Cell Toolbar options. Just click on the Slideshow option and continue reading. Each cell in the Jupyter Notebook will now have a Slide Type option in the upper-right corner.

Can Jupyter notebooks be interactive?

Jupyter widgets enable interactive data visualization in the Jupyter notebooks.


2 Answers

Update #2: The version of RISE on PyPI installed with pip no longer seems to work with modern Jupyter Notebooks. Instead, the README inside RISE's repository recommends installing with this command, which at least in my case did result in a working slideshow:

conda install -c damianavila82 rise

Original: Yes! Install this by following its instructions:

https://github.com/damianavila/RISE

and then restart the Jupyter Notebook server and re-open one of your notebooks. There should now be an "Enter/Exit Live Reveal Slideshow" button on the notebook toolbar, just to the right of the "CellToolbar" button.

Update #1: Both pip install rise and conda install rise should now be able to successfully install it!

like image 88
Brandon Rhodes Avatar answered Oct 20 '22 01:10

Brandon Rhodes


Another option is View=>Cell toolbar=>None.
When necessary, run

pip install rise
or
conda install rise
in terminal. And relaunch Jupyter notebook.
like image 44
PPK Avatar answered Oct 19 '22 23:10

PPK