Jupyter KULeuven slides Template
A nbconvert template to convert jupyterlab notebooks into reveal.js slides using the KULeuven presentation style.
Installation instructions
This nbconvert template can be installed using pip:
pip install jupyter-KULeuven-Slides
This will make the reveal.js template "KULeuven" available in the python environment.
Basic usage
First mark (using the property inspector menu at the left hand side) the start of each slide in any existing Jupyter notebook, by selecting slide under the topic Slide type.
Subsequently, using the jupyterlab top-menu, please select :File -> Save and Export Notebook as -> KULeuven
Command line
Converting Jupyter notebooks into templated KULeuven slides can also be done from the command line as follows:
jupyter nbconvert --to KULeuven Notebook.ipynb
or converting all notebooks in a folder:
jupyter nbconvert --to KULeuven *.ipynb
Adding and modifying the title slide
You can add a title slide, by adding the notebook metadata a section labeled KULeuvenslides. In this section the following tags can be optionally added:
"KULeuvenSlides": {
"title": "test title",
"subtitle": "test subtitle",
"authors": "Jan Genoe",
"location": "Ergens",
"date": "Vandaag"
},
Please do not forget to commit these changes to the jupyter notebook changes after adding this metadata. (The small v on top of the box). The screenshot below shows a possible implementation:
Please do not forget to commit changes after adding metadata. (The small v on top of the box).
Selecting a global template
The following global templates are available:
- Sedes
- Normal
- 1425 (The key referring to the foundation date of our university)
In this folder you can find 3 jupyter notebooks that are converted according to each of those 3 templates.
The Normal template is added by adding to the notebook metadata
"KULeuvenSlides": {
"kuleuven_presentation_style": "Normal"
},
Please do not forget to commit changes after adding metadata. (The small v on top of the box).
Adding a structure slide in the presentation, using a different template
A structure slide, typically for the outline of the presentation, can be added at any point in the presentation by adding to the cell metadata under KULeuvenSlides:
"KULeuvenSlides": {
"slide_code": "structure"
},
(typically there will be already the slide_type present in this section)
Please do not forget to commit changes after adding metadata. (The small v on top of the box).
Develop notes
For building and developing this template has been used.
For the reveal.js template that is used as a source, please see here
See here for nbconvert's documentation on creating custom templates.
Metadata
Release files for jupyter-KULeuven-slides 0.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| jupyter-KULeuven-slides-0.3.5.tar.gz | 871.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jupyter_KULeuven_slides-0.3.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.7 MB
Release files / jupyter-KULeuven-slides-0.3.5.tar.gz
| Download URL | jupyter-KULeuven-slides-0.3.5.tar.gz |
|---|---|
| Size | 871.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60cee7c1725ac3eb4f8beb41165aadf7033ceb93cecba0332f90c5e6b15ac7af
|
|
BLAKE2b-256 checksum How to use checksums |
bd95d6f75b2f1cac9b64341dc5ae104a2bfe49d8428998456c2f02a2caa902a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / jupyter_KULeuven_slides-0.3.5-py3-none-any.whl
| Download URL | jupyter_KULeuven_slides-0.3.5-py3-none-any.whl |
|---|---|
| Size | 870.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
287501a8f10c79a1f134e54028a9ee6a9708c5d0869a4a0930a97917393777fc
|
|
BLAKE2b-256 checksum How to use checksums |
990b593b278b03450da395665f7847c83f8929d4f16e4e8f8bc011fbe087182a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for jupyter-KULeuven-slides 0.3.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.