Skip to main content

A minimal and pip-installable jupyter nbconvert template for KULeuven slides.

Project description

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.

Slide type selection

Subsequently, using the jupyterlab top-menu, please select :File -> Save and Export Notebook as -> KULeuven

Export your slides

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:

Notebook Metadata

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) cell metadata

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.

Project details


Download files

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

Source Distribution

jupyter-KULeuven-slides-0.3.5.tar.gz (871.2 kB view details)

Uploaded Source

Built Distribution

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

jupyter_KULeuven_slides-0.3.5-py3-none-any.whl (870.9 kB view details)

Uploaded Python 3

File details

Details for the file jupyter-KULeuven-slides-0.3.5.tar.gz.

File metadata

  • Download URL: jupyter-KULeuven-slides-0.3.5.tar.gz
  • Upload date:
  • Size: 871.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for jupyter-KULeuven-slides-0.3.5.tar.gz
Algorithm Hash digest
SHA256 60cee7c1725ac3eb4f8beb41165aadf7033ceb93cecba0332f90c5e6b15ac7af
MD5 61d37d79873b5c443dd53855590a6520
BLAKE2b-256 bd95d6f75b2f1cac9b64341dc5ae104a2bfe49d8428998456c2f02a2caa902a6

See more details on using hashes here.

File details

Details for the file jupyter_KULeuven_slides-0.3.5-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_KULeuven_slides-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 287501a8f10c79a1f134e54028a9ee6a9708c5d0869a4a0930a97917393777fc
MD5 39e7297f6f15dc913f33b953bcea15a5
BLAKE2b-256 990b593b278b03450da395665f7847c83f8929d4f16e4e8f8bc011fbe087182a

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