Skip to main content

Live rich content slides in jupyter notebook

Project description

IPySlides

Create Interactive Slides in Jupyter/Voila with all kind of rich content.


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 .

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 IPython module.
  • 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 display command or library's specific display method.
    • You can serialize custom objects to HTML using Slides.serializer API.
  • You can extend markdown syntax using Slides.extender API. 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.slides to build static slides that you can print as well.
  • Content variety for export is limited. Widgets can not be exported.

Speaker Notes

  • You can turn on speaker notes with a Show Notes check in setting panel. See module Slides.notes for details or see examples in Slides.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 -m to 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.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipyslides-3.1.5.tar.gz (99.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipyslides-3.1.5-py2.py3-none-any.whl (113.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ipyslides-3.1.5.tar.gz.

File metadata

  • Download URL: ipyslides-3.1.5.tar.gz
  • Upload date:
  • Size: 99.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for ipyslides-3.1.5.tar.gz
Algorithm Hash digest
SHA256 fe3e42402a51fb29d8291730434c32364a1735a2941f2c90bd55432e83d96334
MD5 a9564a76251f73b014b1adeb2ac7c1a6
BLAKE2b-256 03c4cc56fc86c7f5290326ca3e5a6e9fb4c68dd5df879c29587035d7338a6ee6

See more details on using hashes here.

File details

Details for the file ipyslides-3.1.5-py2.py3-none-any.whl.

File metadata

  • Download URL: ipyslides-3.1.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 113.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for ipyslides-3.1.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 87db513b478dadecde47d32963207429c9c63bbb468fc707b28048f50332ec8c
MD5 8c1d9eded95ad396c2ceaa5a37feeff7
BLAKE2b-256 9b584249dbd31724c5a0b82f0c786a2216c827e943457112c0d6ea1c2b031dfd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page