Skip to main content

A lightweight presentation mode for JupyterLab.

Project description

jupyterlab-deck

docs install extend demo ci
rtd-badge pypi-badge
conda-badge
npm-badge binder-badge
lite-badge
ci-badge
reports-badge
cov-badge

Lightweight presentations for JupyterLab

Installing

pip install jupyterlab-deck

or

mamba install -c conda-forge jupyterlab-deck # or conda, if you must

See CONTRIBUTING.md for a development installation.

Uninstalling

pip uninstall jupyterlab-deck

or

mamba remove jupyterlab-deck # or conda if you must

Usage

Get started

After installing, open or create a Notebook.

Other documents work but are not as much fun.

Deck Mode

Start Deck Mode by

  • in the Notebook Toolbar, click deck-icon
  • open the Command Palette and run Start Deck

In Deck Mode, until you configure any slide types, all of your content should appear in a vertically-scrollable stack.

Remote

In Deck Mode, navigate with:

  • the onscreen remote
    • if available, up, down, left, right will be available
  • these correspond to the standard keyboard shortcuts,
    • , , ,
    • shift+enter executes and advances
  • the spacebar tries two directions:
    • space = , or
    • shift+space = , or

Revealing JupyterLab UX Features

Many of the core JupyterLab UI elements are still available, but hidden by default. Hover over their usual places to reveal them. These include:

  • the right and left sidebar
  • the Notebook Toolbar

Hidden JupyterLab UX Features

Some elements are not visible, and cannot be revealed:

  • the Main Menu
  • the Status Bar
  • the Cell Toolbar

Next Steps:

Exiting Deck Mode

To exit Deck Mode:

Slides

Build a slideshow by changing the slideshow type per cell using the Property Inspector sidebar or the design tools.

type purpose
- (default) stack underneath the previous cell
slide start a new stack
fragment reveal when activated
subslide start a new cell stack in the optional Y axis
skip hide the cell entirely
notes TBD: moves this cell to the off-screen note viewer

Layers

Pick a layer type from:

Layers either temporarily or permanently show content, and won't be reached by. Specifying a layer scope will override the slideshow type. Layers have one of the following scopes:

scope relationship to slides
deck show on all current and future slide or subslides
stack show until the next slide
slide show until the next slide or subslide
fragment only show until the next fragment

Design Tools

In Deck mode, click the ellipsis icon in the bottom right corner

The design tools offer lightweight buttons to:

  • show/hide the slide layout overlay
  • set the slideshow type
  • set the layer type
  • change a few key appearance properties:
    • use the sliders to customize
      • z-index controls the vertical stacking of elements:
        • higher is "closer" to the user
      • opacity controls how vibrant the fonts and colors appear
        • higher is more full
      • zoom controls how big the contents of the cell appear
        • higher is bigger
    • un-check the checkbox to restore to the defaults

Slide Layout

After opening the design tools, click the Show Layout button

In slide layout mode, each part of the slide receives an overlay.

Moving a part manually will remove it from the default layout, and allow you to place it anywhere on the screen, but it will keep the same navigation index.

The keyboard shortcuts and remote should still function as normal.

Moving Parts

Click and drag a part overlay to move the part underneath.

Resizing Parts

Click one of the handles in the corners of the part overlay to resize a part.

Reverting Part Move/Resize

After moving a part to a fixed position, click the button on a part overlay to restore the part to the default layout.

Configuration

Enabling Deck Mode at startup

{
  "@deathbeds/jupyterlab-deck:plugin": {
    "active": true
  }
}

Frequently Asked Questions

Does it work with notebook 6 aka classic?

No. Use RISE.

Does it work with notebook 7?

Not yet. Navigating multiple documents during the same presentation will probably never work, as this is incompatible with the one-document-at-a-time design constraint of the Notebook UX.

Will it generate PowerPoint?

No. This would be a fine third-party extension which could consume notebook metadata created by this extension, jupyterlab-fonts, and nbconvert-compatible slides.

Will it generate single-document static HTML presentations?

No. Use nbconvert, but no layers or style customization will work.

For a full static viewing experience, try something like JupyterLite.

Will it generate PDF?

Not yet.

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

jupyterlab-deck-0.1.3.tar.gz (397.0 kB view details)

Uploaded Source

Built Distribution

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

jupyterlab_deck-0.1.3-py3-none-any.whl (293.8 kB view details)

Uploaded Python 3

File details

Details for the file jupyterlab-deck-0.1.3.tar.gz.

File metadata

  • Download URL: jupyterlab-deck-0.1.3.tar.gz
  • Upload date:
  • Size: 397.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for jupyterlab-deck-0.1.3.tar.gz
Algorithm Hash digest
SHA256 78c8ebc78d50cce86506e4dbe8eea27f0791763eb11f06cf7361fce15671282d
MD5 5a79bc2fe59b7c7048fd6f70dabcef47
BLAKE2b-256 3b5b122e2a9bad73bdf6ceaac765fd18ffc6eb2a2f1cb64f943b2c2be16f7569

See more details on using hashes here.

File details

Details for the file jupyterlab_deck-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyterlab_deck-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bfb6f2934efb5404b5254cb683b5c8971bcefedfcade39ce416522e9bf17d14d
MD5 ddde5b4475283d64b398685bce3dc4cf
BLAKE2b-256 c302021da27113e61537bc75fabb22f6787f97a937dabc688eff33f95ae5f67b

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