JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q47191F
  • License BSD-3-Clause

Make headings collapsible like the old Jupyter notebook extension and like mathematica notebooks.

Package Exports

  • @aquirdturtle/collapsible_headings

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@aquirdturtle/collapsible_headings) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Collapsible_Headings

Make headings collapsible like the old Jupyter notebook extension and like Mathematica notebooks.

A selected header cell (i.e. markdown cell starting with some number of "#") can be collapsed / uncollapsed by clicking on the caret icon created to the left of header cells or by using a shortcut.

In emulating the original extension, this extension now supports the following shortcuts:

  • "T" or "Accel Q" shortcuts to toggle Collapse
  • "Left-Arrow" to collapse the selected current header section
  • "Right-Arrow" to uncollapse the selected current header section
  • "Shift-A" to add a header above the current cell
  • "Shift-B" to add a header below the current header section

All shortcuts only work in command mode and are editable by the user by going to Settings -> Advanced Settings Editor -> Keyboard Shortcuts and editing the shortcuts there.

Alt Text

Prerequisites

  • JupyterLab

Installation

jupyter labextension install @aquirdturtle/collapsible_headings

Development

For a development install (requires npm version 4 or later), do the following in the repository directory:

npm install
npm run build
jupyter labextension link .

To rebuild the package and the JupyterLab app:

npm run build
jupyter lab build