https://github.com/avitase/nbfigtulz
Collection of tools to generate and display visualizations in JupyterLab
https://github.com/avitase/nbfigtulz
Last synced: about 2 months ago
JSON representation
Collection of tools to generate and display visualizations in JupyterLab
- Host: GitHub
- URL: https://github.com/avitase/nbfigtulz
- Owner: avitase
- License: mit
- Created: 2021-04-13T18:18:43.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-17T13:24:42.000Z (over 3 years ago)
- Last Synced: 2025-03-03T17:05:04.499Z (3 months ago)
- Language: Jupyter Notebook
- Size: 1.52 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# nbfigtulz
[](https://www.python.org/downloads/release/python-380/)
[](http://nbfigtulz.readthedocs.io/?badge=latest)
[](https://pypi.org/project/nbfigtulz/)
[](https://github.com/psf/black)`nbfigtulz` is a small library to show and save visualizations made via [matplotlib](https://matplotlib.org/) with the aim to let the user conveniently render publication ready images by default while working in [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/). The main features of `nbfigtulz` are:
- Images are generated and stored in the [PNG](https://en.wikipedia.org/wiki/Portable_Network_Graphics) and [PGF](https://en.wikipedia.org/wiki/Progressive_Graphics_File) format which lends itself perfectly for inclusion in [PDF/A-1b](https://de.wikipedia.org/wiki/PDF/A) documents.
- [PNGs](https://en.wikipedia.org/wiki/Portable_Network_Graphics) are saved [Base64](https://en.wikipedia.org/wiki/Base64) encoded within a notebook. This makes the notebook free-standing and one can send raw notebooks to fellow researchers without having to remember to include various additional files such as images. Note that **one does not have to re-run the notebook to display the images**.
- Users are encouraged to render small images with high-resolution. Ideally, these images can be included without rescaling into a document.## Documentation
Find our documentation [here](https://nbfigtulz.readthedocs.io).## Installation
`nbfigtulz` releases are available as wheel packages for macOS, Windows and Linux on [PyPI](https://pypi.org/project/nbfigtulz/).
Install it using pip:
```
python -m pip install -U pip
python -m pip install -U nbfigtulz
```## Examples
In addition to our [documentation](https://nbfigtulz.readthedocs.io) we provide a short notebook with a few examples:
- [example/notebook.ipynb](https://github.com/avitase/nbfigtulz/blob/main/example/notebook.ipynb)