nb-thumb
Install
pip install nb_thumb
Quickstart
Show A thumbnail
from nb_thumb import nb2thumb
nb2thumb(nb_path='test_nbs/geom_col.ipynb',
label='two_variable_bar_plot',
size=(200,200))
Show A Gallery
This will show a gallery of plots from notebooks.
from nb_thumb import gallery
Use output: asis
When using
nb_thumb.galleryyou should always set the Quarto directive#|output: asisso that the markdown is rendered correctly in quarto.See raw output for more information.
plots = \
[dict(nb_path= 'test_nbs/geom_col.ipynb', label='two_variable_bar_plot'),
dict(nb_path='test_nbs/PlotnineAnimation.ipynb', label='spiral'),
dict(nb_path='test_nbs/geom_density.ipynb', label='density_curve'),
dict(nb_path='test_nbs/geom_map.ipynb', label='map'),
dict(nb_path='test_nbs/geom_segment.ipynb', label='ranges'),
dict(nb_path='test_nbs/geom_segment.ipynb', label='rank')]
#|output: asis
print(gallery(plots))
Usage
For more information and examples, see the docs.
Metadata
Release files for nb-thumb 0.0.9
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 | |
|---|---|---|---|---|
| nb-thumb-0.0.9.tar.gz | 9.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nb_thumb-0.0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.7 kB
Release files / nb-thumb-0.0.9.tar.gz
| Download URL | nb-thumb-0.0.9.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18c23b55e0de7d461c95c4a4c607f9a40985863e0b6c1e0fd1e160c994ec7d26
|
|
BLAKE2b-256 checksum How to use checksums |
c0a96bee8a8875be47c8f376aec67118c1b234be8bfb2fa1fd51248a6b335332
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|
Release files / nb_thumb-0.0.9-py3-none-any.whl
| Download URL | nb_thumb-0.0.9-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d8c3c968714deb8e94d902226f22bc22dc9d45eeeb704820f0cfb824967b2d4
|
|
BLAKE2b-256 checksum How to use checksums |
8fc3e9639b61ce2a1082d625b007265fecdbf933ad3bcfc6b13994235a9ff2ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|
Security for nb-thumb 0.0.9
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.