ipyvizzu
Jupyter notebook integration for Vizzu.
ipyvizzu only works in jupiter notebook environment. A notebook cell may contain the following code snippet.
from ipyvizzu import Chart, Data, Config
data = Data()
data.add_series("Foo", ["Alice", "Bob", "Ted"])
data.add_series("Bar", [15, 32, 12])
data.add_series("Baz", [5, 2, 2])
chart = Chart()
chart.animate(data)
chart.animate(x="Foo", y="Bar", color="Foo")
chart.animate(geometry="circle")
chart.animate(x="Foo", y="Baz", color="Foo")
chart.animate(geometry="rectangle")
Installation
ipyvizzu requires only IPython package, but you can use it only in jupyter
notebook therefore notebook project has to be installed.
pip install ipyvizzu
pip install notebook
ipyvizzu loads Vizzu from jsDelivr by default, but a local copy of it can be used.
Install a local copy of Vizzu.
npm install vizzu@~0.4.0
Set up Vizzu in the constructor of the Chart class.
from ipyvizzu import Chart
chart = Chart(vizzu="./node_modules/vizzu/dist/vizzu.min.js")
Documentation
Documentation can be build with the doc make target.
make doc
Online version can be read at vizzuhq.github.io/ipyvizzu.
CI check
The check make target collects the targets which are run by the CI server.
make check
Testing
The unit tests can be run with the test make target. As part of the unit
tests the notebooks under the docs/examples are executed, too.
make test
Formatting
The ipyvizzu project is formatted with black. The CI check invokes the
check-format target to ensure that the python files are formatted with
black.
make check-format
black can be run with the format make target.
make format
Linter
The lint target runs pylint over the ipyvizzu project.
make lint
Development
Release
Plese read the release guide.
Metadata
Release files for ipyvizzu 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ipyvizzu-0.5.0.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ipyvizzu-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.3 kB
Release files / ipyvizzu-0.5.0.tar.gz
| Download URL | ipyvizzu-0.5.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c597b511966dbbe9cbc87fc18407e6da8beb44aefcab2fb633214ec202dde9cd
|
|
BLAKE2b-256 checksum How to use checksums |
c62fb59fc3325f6efc0a647e2fa525e82e4d0df0ae6a507ee37a94f06a727b88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10
|
Release files / ipyvizzu-0.5.0-py3-none-any.whl
| Download URL | ipyvizzu-0.5.0-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2fe6fd1a52f393694743f64d34cf37a96a61c752a89261b7473f31d39c4aed9e
|
|
BLAKE2b-256 checksum How to use checksums |
6106354aed52ff76ace8331f11fcdce3e0c40f3efcde312b54d7eb83dbd4372c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10
|