IPySlides
Create interactive slides programatically in Jupyter/Voila with all kind of rich content.
- Launch Example Notebook
- See a Demo Notebook at Kaggle
- Watch a Youtube Video
- See PDF-Slides
- See PDF-Report
Changelog
You can see upto date documentation via ipyslides.Slides().docs(), so no additional changelog is created.
Install
> pip install ipyslides
> pip install ipyslides[extra]
For development install, clone this repository and then
> cd ipyslides
> pip install -e .
How to Use
- In Jupyter Notebook, do the follwoing:
%load_ext ipyslides # It will display info to move further
slides = get_slides_instance()
- Above is equivalent to:
import ipyslides as isd
slides = isd.Slides()
Creating Slides
Please look at two presentations provided with Slides.docs(), Slides.demo() to see how slides are created. Moreover instruction in settings panel are at your finger tips.
Content Types to Embed
You can embed anything that you can include in Jupyter notebook like ipywidgets, HTML, PDF, Videos etc.,including jupyter notebook itself!
- IPython Display Objects, see
IPythonmodule. - Plots and Other Data Types (matplotlib, plotly etc.)
- Jupyter Interactive Widgets (ipywidgets, bqplot ect.)
- Custom and Third Party Objects( which are not implemented in this library)
- You can display with
displaycommand or library's specific display method. - You can serialize custom objects to HTML using
Slides.serializerAPI.
- You can display with
- You can extend markdown syntax using
Slides.extenderAPI. See some good extensions to add from PyMdown.
PDF printing
To include all type of objects you need to make PDF manually.
Read instructions in side panel about PDF printing. See PDF-Slides
If you just have HTML objects like matplotolib plots, images, plotly, bokeh charts etc. and not something like ipywidgets, see next section.
HTML/PDF Report/Slides
- You can create beautiful HTML/PDF report from slides using
slides.export.report. See PDF-Report - Use
slides.export.slidesto build static slides that you can print as well. - Content variety for export is limited. Widgets can not be exported unless an alternative representation is given by
Slides.alt(widget, func(widget)). - Paper width for printing is 10 inch (254mm) and height is determined by aspect ration dropdown in settings panel.
- Use
Save as PDFin browser to make links work in ouput PDF.
Speaker Notes
- You can turn on speaker notes with a
Show Notescheck in setting panel. See moduleSlides.notesfor details or see examples inSlides.demo().
Notes is an experimantal feature, so use at your own risk. Avoid if you can.
Known Limitations
- Since Markdown is parsed using python (and we do not run notebook from outside e.g. with nbconvert), markdown cells are of no use. You can still write markdown there and then convert to code cell with slide magic
%%slide number -mto add to slides. - Slide number is necessary to be tracked by user in notebook, because cells are not linked to each other and multiple runs of a cell can lead to adding many slides with same content. Inside python scripts that run in linear fashion, you can use
Slides.AutoSlide().[title,slide,frames,from_markdown]. - Bounding box of slides for screenshots should be set by user (if not in fullscreen).
Acknowledgements
- Slides application is based on ipywidgets.
- Rich display mechanism, and collection of cell output to slides heavily rely on IPython.
- Python-Markdown is extensily used for content and extended where needed.
Release files for ipyslides 3.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ipyslides-3.5.3.tar.gz | 112.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ipyslides-3.5.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 236.7 kB
Release files / ipyslides-3.5.3.tar.gz
| Download URL | ipyslides-3.5.3.tar.gz |
|---|---|
| Size | 112.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
556a6665dc78f0ce461b7a98ca89652700f1e1d4de388d5f8b51e58a4ab12c4f
|
|
BLAKE2b-256 checksum How to use checksums |
29563ca65ef875da1219aab59f24d03164fe79d61b088df0ad6f1bcb63750163
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / ipyslides-3.5.3-py2.py3-none-any.whl
| Download URL | ipyslides-3.5.3-py2.py3-none-any.whl |
|---|---|
| Size | 123.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1ac63697e86a4870297c1304a49555664929f9189e11d9282425c611cb88e8e1
|
|
BLAKE2b-256 checksum How to use checksums |
5335530021e2c575fb1453d3abd74fee20cc0f4ed0e881126be97e6a698b21a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|