Ian Rose e1f8dd4e2e v1.0.0 пре 5 година
..
src c7cecf12e8 v1.0.0-rc.0 пре 5 година
style c7cecf12e8 v1.0.0-rc.0 пре 5 година
.gitignore 1673e368cc added some comments пре 6 година
.prettierignore d24e666ca6 Make the codebase prettier. пре 6 година
.prettierrc d24e666ca6 Make the codebase prettier. пре 6 година
LICENSE 3ea740cce3 Add license. пре 7 година
README.md ab4758864f Update for JupyterLab 1.0 пре 6 година
package.json e1f8dd4e2e v1.0.0 пре 5 година
toc.gif fefeeac473 Update demo gif. пре 6 година
tsconfig.json 10f74e8a11 Update for jlab 0.35 prerelease пре 6 година
tslint.json d8c17aa369 Add a bunch of copyrights. пре 6 година
yarn.lock e1f8dd4e2e v1.0.0 пре 5 година

README.md

jupyterlab-toc

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 1.0

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.