Skip to main content

Jupyter Notebook integration for Vizzu.

Project description

Vizzu

ipyvizzu - Jupyter notebook integration for Vizzu.

Tutorial & Examples · Repository

CI check

About The Project

ipyvizzu provides Jupyter Notebook integration for Vizzu.

Installation

ipyvizzu requires only IPython package. However you can use it only in Jupyter Notebook therefore notebook project has to be installed.

pip install ipyvizzu
pip install notebook

ipyvizzu downloads Vizzu from jsDelivr CDN by default, but a local copy of it can be used.

Install a local copy of Vizzu.

npm install vizzu@~0.4.0

Change Vizzu's url in the constructor of the Chart class.

from ipyvizzu import Chart

chart = Chart(vizzu="./node_modules/vizzu/dist/vizzu.min.js")

Usage

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(Config({"x": "Foo", "y": "Bar", "color": "Foo"}))
chart.animate(Config({"geometry": "circle"}))
chart.animate(Config({"x": "Foo", "y": "Baz", "color": "Foo"}))
chart.animate(Config({"geometry": "rectangle"}))

Visit our documentation site for more tutorials and examples.

Contributing

We welcome contributions to the project, visit our contributing guide for further info.

Contact

License

Copyright © 2022 Vizzu Kft..

Released under the Apache 2.0 License.

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.6.0.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

ipyvizzu-0.6.0-py3-none-any.whl (9.1 kB view hashes)

Uploaded Python 3

Supported by

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