Plotly Bootstrap Templates
Figure Template Quickstart
Install the package as usual with your favorite Python package manager, the package name is plotly-bootstrap-templates.
Then, use the main package function load_figure_template to load the template.
It is automatically stored in the plotly.io.templates dictionary.
plotly.io.templates.default will be automatically set to the requested template afterwards.
from plotly_bootstrap_templates import load_figure_template
load_figure_template("flatly")
You may load several theme at once by giving a list, the default template will then be the first in this list.
load_figure_template(["flatly", "solar"])
To get a full list of the available templates, print the TEMPLATES constant.
For each of them, also a *_dark variant exists, which are listed in the TEMPLATES_DARK constant.
from plotly_bootstrap_templates import TEMPLATES, TEMPLATES_DARK
print("templates:\n", TEMPLATES)
print("dark templates:\n", TEMPLATES_DARK)
Development
To create the project virtual environment using uv run:
uv sync
To regenerate the template data files, run:
./_create_templates.py
The script is equipped with a respective shebang to tell uv which dependencies to use for that (which are not necessary at runtime of the package).
To run the test suite, use:
uv run pytest
This will generate an example plot of the gapminder test data set for every available theme and open the result in your default browser using the webbrowser package.
Further Information
For further reading visit the original repository.
Metadata
Release files for plotly-bootstrap-templates 2.1.0.post1
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 |
|---|---|---|---|---|
| plotly_bootstrap_templates-2.1.0.post1.tar.gz | 19.1 kB | Without provenance | Details for plotly_bootstrap_templates-2.1.0.post1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plotly_bootstrap_templates-2.1.0.post1-py3-none-any.whl | Python 3 | none | any | Details for plotly_bootstrap_templates-2.1.0.post1-py3-none-any.whl |
Total release size: 109.5 kB
Release files / plotly_bootstrap_templates-2.1.0.post1.tar.gz
| Download URL | plotly_bootstrap_templates-2.1.0.post1.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad987e5fe2c6ce55f96563b0ae976947b307b01cc9f324d64edaabb5cfc85074
|
|
BLAKE2b-256 checksum How to use checksums |
e74820c7ac700cce4e965b9d69351df1f86350021044f36d8a7b9482bff5e06b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.19
|
Release files / plotly_bootstrap_templates-2.1.0.post1-py3-none-any.whl
| Download URL | plotly_bootstrap_templates-2.1.0.post1-py3-none-any.whl |
|---|---|
| Size | 90.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
babfa4042e14d23b3797f6446d6b5eb25e55d5e2ca08b7dcabac6b6cef67d97a
|
|
BLAKE2b-256 checksum How to use checksums |
56e6cd12ea023498dc08b5ad79438c864e18f33b503dc8cfb895b0d453a21c58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.19
|
Security for plotly-bootstrap-templates 2.1.0.post1
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.