Skip to main content

Jupyter notebook integration for vizzu

Project description

Makefile CI

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipyvizzu-0.5.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

ipyvizzu-0.5.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file ipyvizzu-0.5.0.tar.gz.

File metadata

  • Download URL: ipyvizzu-0.5.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for ipyvizzu-0.5.0.tar.gz
Algorithm Hash digest
SHA256 c597b511966dbbe9cbc87fc18407e6da8beb44aefcab2fb633214ec202dde9cd
MD5 e0b0b58cd4160e4a5c5290706d1ea2c0
BLAKE2b-256 c62fb59fc3325f6efc0a647e2fa525e82e4d0df0ae6a507ee37a94f06a727b88

See more details on using hashes here.

File details

Details for the file ipyvizzu-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: ipyvizzu-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for ipyvizzu-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2fe6fd1a52f393694743f64d34cf37a96a61c752a89261b7473f31d39c4aed9e
MD5 56785cdcfd359165b705d5a1add17646
BLAKE2b-256 6106354aed52ff76ace8331f11fcdce3e0c40f3efcde312b54d7eb83dbd4372c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page