Martha Cryan a6ee003d75 Fix JSON bug 4 anos atrás
..
binder 2a92c71288 Fix build sequence 5 anos atrás
notebooks 6d4e37d6ac Update Python version 5 anos atrás
schema 5566b00be2 Apply suggestions from code review 5 anos atrás
src af4d0a6854 Update configs of separate toc packages 4 anos atrás
style c7cecf12e8 v1.0.0-rc.0 5 anos atrás
.gitignore 8fe6301dc7 Migrate to Jupyterlab 2.0.0 (#116) 5 anos atrás
.prettierignore d24e666ca6 Make the codebase prettier. 6 anos atrás
.prettierrc d24e666ca6 Make the codebase prettier. 6 anos atrás
LICENSE 3ea740cce3 Add license. 7 anos atrás
README.md fc64ae4bed Update README with nodejs prerequisite (#112) 5 anos atrás
package.json a6ee003d75 Fix JSON bug 4 anos atrás
toc.gif fefeeac473 Update demo gif. 6 anos atrás
tsconfig.json af4d0a6854 Update configs of separate toc packages 4 anos atrás
tslint.json d8c17aa369 Add a bunch of copyrights. 6 anos atrás
yarn.lock c07e9b7662 Update to latest dependencies 5 anos atrás

README.md

jupyterlab-toc

Binder

A Table of Contents extension for JupyterLab. This auto-generates a table of contents in the left area when you have a notebook or markdown document open. The entries are clickable, and scroll the document to the heading in question.

Here is an animation showing the extension's use, with a notebook from the Python Data Science Handbook:

Table of Contents

Prerequisites

  • JupyterLab >=2.0
  • NodeJS 12+

Installation

jupyter labextension install @jupyterlab/toc

Development

For a development install, do the following in the repository directory:

jlpm install
jlpm run build
jupyter labextension install .

You can then run JupyterLab in watch mode to automatically pick up changes to @jupyterlab/toc. Open a terminal in the @jupyterlab/toc repository directory and enter

jlpm run watch

Then launch JupyterLab using

jupyter lab --watch

This will automatically recompile @jupyterlab/toc upon changes, and JupyterLab will rebuild itself. You should then be able to refresh the page and see your changes.