Notebook-doc
Notebook-doc is a Python package that can create documentation for functions in Databricks notebooks.
It can generate documentation from the docstrings of functions.
It will generate documentation as HTML documents, which can be displayed inside Databricks notebooks.
Usage
The package can be used as follows to generate documentation:
- Install the package (using PyPi - coming soon)
- Import the documentation generator function as follows:
from notebook_doc import render_documentation
- Make sure that you have executed all cells that contain function definitions.
- Execute
render_documentationfunction and provide the globals() dictionary to generate documentation as a HTML script.
Example (in Databricks)
Databricks displayHTML function can be directly used to display the HTML document returned by the render_documentation function.
from notebook_doc import render_documentation
displayHTML(render_documentation(globals(), module_name='Dummy Module'))
Example (in other notebooks)
HTML output from render_documentation function can be written on a local HTML file so that documentation can be displayed as a HTML file.
from notebook_doc import render_documentation
html_output = render_documentation(globals(), module_name='Dummy Module')
with open('dummy_doc.html', 'w') as f:
f.write(html_output)
Metadata
Release files for notebook-doc 0.2.1
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 |
|---|---|---|---|---|
| notebook-doc-0.2.1.tar.gz | 8.4 kB | Without provenance | Details for notebook-doc-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| notebook_doc-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for notebook_doc-0.2.1-py3-none-any.whl |
Total release size: 16.9 kB
Release files / notebook-doc-0.2.1.tar.gz
| Download URL | notebook-doc-0.2.1.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4199c2566d693a80fa805401f28ee88206d517e0236fe92a718f94f12f932acd
|
|
BLAKE2b-256 checksum How to use checksums |
199a7d323e57f1352025aa08f955424cf42562d484988a3dfb84f8d325869f0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / notebook_doc-0.2.1-py3-none-any.whl
| Download URL | notebook_doc-0.2.1-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5d77c8a3c50938dd2c2f3a99c4a6e317cad5c0cac2af9e64cb73739385c17222
|
|
BLAKE2b-256 checksum How to use checksums |
3a744a93be9b0b0c06cfa07064b0a25e7a3d215abfc126581b0352f59f22ee4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for notebook-doc 0.2.1
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.