Skip to content

Cell content is not recentered after outputs are displayed #93

@jpdehollain

Description

@jpdehollain

Description

Before running a code cell in slideshow mode, the content of all the cells in that slide is centered vertically on the screen. After running the cell, if the cell displays some output (e.g., with print or if plotting a figure), the slide content is not recentered vertically, potentially causing the outputs to be cut-off from the screen.

Recording.2024-08-23.141640.mp4

Reproduce

  1. Create a notebook that includes a code cell that generates some output, such as a plot
  2. View the notebook in slideshow mode and run the cell

Expected behavior

After displaying the output, the content shown on the screen should be re-centered vertically

Context

  • Python package version:
    jupyterlab-rise 0.42.0 pypi_0 pypi

  • Extension version:
    jupyterlab-rise v0.42.0 enabled ok (python, jupyterlab_rise)
    jupyterlab_pygments v0.3.0 enabled ok (python, jupyterlab_pygments)
    @jupyter-notebook/lab-extension v7.2.1 enabled ok
    @jupyter-widgets/jupyterlab-manager v5.0.11 enabled ok (python, jupyterlab_widgets)

    jupyter_lsp enabled

    • Validating jupyter_lsp...
      jupyter_lsp 2.2.5 ok
      jupyter_server_terminals enabled
    • Validating jupyter_server_terminals...
      jupyter_server_terminals 0.5.3 ok
      jupyterlab enabled
    • Validating jupyterlab...
      Extension package jupyterlab took 0.7639s to import
      jupyterlab 4.2.4 ok
      jupyterlab_rise enabled
    • Validating jupyterlab_rise...
      jupyterlab_rise 0.42.0 ok
      notebook enabled
    • Validating notebook...
      notebook 7.2.1 ok
      notebook_shim enabled
    • Validating notebook_shim...
      notebook_shim ok
  • Operating System and its version: Windows 11

  • Browser and its version: Microsoft Edge for Business Version 127.0.2651.105 (Official build) (64-bit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions