Live rich content slides in jupyter notebook
Project description
ipyslides
Create Interactive Slides in Jupyter/Voila with all kind of rich content.
Install
> pip install ipyslides
For development install, clone this repository and then
> cd ipyslides
> pip install -e .
Demo
See a Demo Notebook at Kaggle, [Version>0.2.0]https://www.kaggle.com/massgh/ipyslides-0-2-0)
Usage
import ipyslides as isd
isd.initilize() #This will create a title page and parameters in same cell
isd.write_title() #create a rich content multicols title page.
isd.insert(1) #This will create a slide in same cell where you run it
isd.insert_after(1,*objs) #This will create as many slides after the slide number 1 as length(objs)
isd.build() #This will build the presentation cell. After this go top and set `convert2slides(True)` and run all below.
Each command is replaced by its output, so that when you run next time, you don't get duplicate slides.
For jupyterlab >= 3, do pip install sidecar for better presenting mode.
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! I am not kidding, see
Note: Websites may refuse to load in iframe. Jupyterlab was loaded inside itself, but refused in Voila.
Full Screen Presentation
- Use Voila for full screen prsentations. Your notebook remains same, it is just get run by Voila.
- Install Jupyterlab-Sidecar. Fullscreen support is added natively in version > 0.4!
Multi Column Support
Starting version 0.2.0, you can use MultiCols
class to display connected content like ipwidgets
in columns.
Very thankful to Python-Markdown which enabled to create
write
command as well as syntax highliting.
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
Built Distribution
Hashes for ipyslides-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55fb6b1a115f08090e78136d7ab4510c597973825b69a059d6c16d42550061ed |
|
MD5 | d7b03ccdd831613e454c54338ba55a0d |
|
BLAKE2b-256 | 78479c774904c8fcbca850435cf6f23928e1511d86f3cccad14474273aee7539 |