Jupyter Notebook ToC
This is a simple extension to generate a table of contents for a Jupyter notebook.
Basic Usage
import jupyter_toc
jupyter_toc.build()
It will return something like this:
Table of Contents
- [Introduction](#introduction)
- [Subhead](##subhead)
- [Usage](#usage)
- [Development](#development)
Advanced Usage
You can pass arguments to customize the following:
title- The title of the table of contents.depth- The maximum depth of headings to include in the table of contents.make_hyperlinks- Whether to make the table of contents entries hyperlinks.print_output- Whether to print the ToC or just return it as a string.
Contributing
Feel free to open an issue or submit a pull request.
To publish a new version to PyPI:
pip install twine wheel # if you don't have it already
python setup.py sdist bdist_wheel # build the package
twine upload dist/* # upload to PyPI
Development
Running Tests
The test suite can be run using Python's built-in unittest framework.
Navigate to the tests directory and run:
python -m unittest test_jupyter_toc.py
Or, if you're in the root directory:
python -m unittest tests/test_jupyter_toc.py
Authors
Metadata
Release files for jupyter-toc 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jupyter-toc-1.1.2.tar.gz | 3.4 kB | Without provenance | Details for jupyter-toc-1.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jupyter_toc-1.1.2-py3-none-any.whl | Python 3 | none | any | Details for jupyter_toc-1.1.2-py3-none-any.whl |
Total release size: 7.4 kB
Release files / jupyter-toc-1.1.2.tar.gz
| Download URL | jupyter-toc-1.1.2.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8d2e25a6196db157218414790a1463f94fb9ef40094da0a81556aef9621e57fa
|
|
BLAKE2b-256 checksum How to use checksums |
496bf1f56d830a9f60365b75f2e137a5dea2ef8ad91236f92bb8a8b74426d07f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Release files / jupyter_toc-1.1.2-py3-none-any.whl
| Download URL | jupyter_toc-1.1.2-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b6978e48181b50da462370d092dae08747b01be12879ad7c88316688f8a16d76
|
|
BLAKE2b-256 checksum How to use checksums |
c077b24ff6f43f0f90cb6efdb28c4a94a78acdd9aa70f6c49e1462661e2d2c58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Security for jupyter-toc 1.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.