Skip to main content

jupyter-mkslides

An nbconvert custom exporter that converts Jupyter Notebooks (.ipynb) into Markdown for mkslides.

Installation

pip install -e .

Usage

jupyter nbconvert --to mkslides presentation.ipynb

This generates presentation.md along with presentation_files/, which contains the extracted image outputs. The generated Markdown can be fed directly to mkslides.

mkslides build presentation.md
# or
mkslides serve presentation.md

Cell metadata handling

Each cell is converted according to its metadata.slideshow.slide_type (set via the Slideshow toolbar in Jupyter):

slide_type Result
slide --- inserted before the cell (new slide)
subslide Same as slide (---) by default; optionally -v- (see below)
fragment Appended to the previous slide
notes Prefixed with Note: and turned into speaker notes of the previous slide
skip Omitted from the output
unset / - --- inserted so that each cell becomes its own slide

Turning subslides into vertical slides

The default mkslides (reveal.js) configuration has no vertical slide separator, so subslide cells are output as regular slide breaks (---) by default. To use vertical slides, pass the option at conversion time:

jupyter nbconvert --to mkslides --MkSlidesExporter.subslide_as_vertical=True presentation.ipynb

and enable the vertical separator in your mkslides.yml:

slides:
  separator_vertical: '^\s*-v-\s*$'

Image outputs of code cells (image/png, etc.) are saved to {notebook name}_files/ by nbconvert's standard ExtractOutputPreprocessor and linked as ![png](...).


日本語版は README_ja.md を参照してください。

Release files for jupyter-mkslides 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jupyter-mkslides 0.1.0
File Size Uploaded
jupyter_mkslides-0.1.0.tar.gz 128.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyter-mkslides 0.1.0
File Interpreter ABI Platform
jupyter_mkslides-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 133.5 kB

Release files / jupyter_mkslides-0.1.0.tar.gz

Download URL jupyter_mkslides-0.1.0.tar.gz
Size 128.3 kB
Tags Source
SHA-256 checksum
How to use checksums
17fde6ee0eb10c8be394bf899e397059c4588197877f4163c73d963cfd9d1c89
BLAKE2b-256 checksum
How to use checksums
f83b9319413c547a10b7b97d1441ce7a7938d64506f509b2ed9f1781eb47b32a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.

Transparency log

Release files / jupyter_mkslides-0.1.0-py3-none-any.whl

Download URL jupyter_mkslides-0.1.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d6b3e68c64afae85a1e1b79ae29152f2c8008b0e7b00d5dbd96c9f8ce6d15d5
BLAKE2b-256 checksum
How to use checksums
dbad3c5cf0b7a03ab2db89ba34ac9476764209e33ac4531ce77362fc4f7f1af5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.2

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page