Skip to content

Test new cell fold/collapse features #141222

@roblourens

Description

@roblourens

Refs: #132690

Complexity: 3

Create Issue


Open any notebook using any notebook provider. For example, install the "Github Issue Notebooks" extension and open one of the *.github-issues files in the vscode repo.

  • Make sure you have "notebook.cellFocusIndicator": "gutter" (the default)
  • You should now be able to click the blue bar to collapse the cell input or output
  • The collapsing feature existed before via double-clicking or the context menu, the blue bar behavior is new
  • When the cell has output, the blue bar is split and clicking the top half should just collapse the input, the bottom half should just collapse the output
  • Try different notebook layout settings and make sure that the bar still appears and works correctly
  • It also works to collapse markdown cells and doesn't appear split

  • When you fold a markdown cell (by clicking the chevron), text like "X cells hidden..." appears
  • Try with different notebook layout settings and make sure that the layout appears correct, e.g. that text is not overflowing onto the next cell

Note that "collapsing" in the first item is different from "folding" in the second. Code and Markdown cells can be collapsed, and this just reduces their height to about one line. Folding folds hierarchical groups of markdown cells.

Known issues

  • Fold/unfolding a markdown cell can sometimes produce flickering in markdown cells below
  • The ... will become clickable to expand the folded region

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions