Skip to main content

Build animated charts in Jupyter notebook with a simple Python synthax.

Project description

Vizzu

ipyvizzu - Build animated charts in Jupyter notebook with a simple Python synthax.

Tutorial · Examples · Repository

PyPI version CI-CD

About The Project

ipyvizzu is an animated charting tool for Jupyter, Google Colab, Databricks, Kaggle and Deepnote notebooks among other platforms. ipyvizzu enables data scientists and analysts to utilize animation for storytelling with data using Python. It's built on the open-source Javascript/C++ charting library Vizzu

There is a new extension of ipyvizzu, ipyvizzu-story with which the animated charts can be presented right from the notebooks. Since ipyvizzu-story's synthax is a bit different to ipyvizzu's, we suggest you to start from the ipyvizzu-story repo if you're interested in using animated charts to present your findings live or to share your presentation as an HTML file.

Similarly to Vizzu, ipyvizzu utilizes a generic dataviz engine that generates many types of charts and seamlessly animates between them. It is designed for building animated data stories as it enables showing different perspectives of the data that the viewers can easily follow.

Main features:

  • Designed with animation in focus;
  • Defaults based on data visualization guidelines;
  • Works with Pandas dataframe, while also JSON and inline data input is available;
  • Auto scrolling feature to keep the actual chart in position while executing multiple cells.

Installation

ipyvizzu requires the IPython, jsonschema and pandas packages.

pip install ipyvizzu

You can also use ipyvizzu by locally installing Vizzu, you can find more info about this in the documentation

Usage

You can create the animation below with the following code snippet.

ipyvizzu

import pandas as pd
from ipyvizzu import Chart, Data, Config

data_frame = pd.read_csv(
    "https://raw.githubusercontent.com/vizzuhq/ipyvizzu/main/docs/examples/stories/titanic/titanic.csv"
)
data = Data()
data.add_data_frame(data_frame)

chart = Chart(width="640px", height="360px")

chart.animate(data)

chart.animate(
    Config(
        {
            "x": "Count",
            "y": "Sex",
            "label": "Count",
            "title": "Passengers of the Titanic",
        }
    )
)
chart.animate(
    Config(
        {
            "x": ["Count", "Survived"],
            "label": ["Count", "Survived"],
            "color": "Survived",
        }
    )
)
chart.animate(Config({"x": "Count", "y": ["Sex", "Survived"]}))

Documentation

Visit our documentation site for more details and a step-by-step tutorial into ipyvizzu or check out our example gallery.

Tools Support

ipyvizzu can be used in a wide variety of environments. We prepared examples and the list of supported/unsupported features for the following platforms:

Extensions

  • ipyvizzu-story adds presentation controls to present data stories live or to share them as an interactive HTML file.

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.12.1.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipyvizzu-0.12.1-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ipyvizzu-0.12.1.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for ipyvizzu-0.12.1.tar.gz
Algorithm Hash digest
SHA256 fb12c09cb9bd69728fc2123ecb9d9a23a626d379eb3ed02b008a17e160932c09
MD5 896b9e817f331295c6606f091467bc78
BLAKE2b-256 9a15e13dea70c4504668c6fab4c09a70baa36d708a1e28819cf0ac7f9417382c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ipyvizzu-0.12.1-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for ipyvizzu-0.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 853da619d13f3c69625cd7182539614e1585b5866e6e41581af913e781cd4923
MD5 61de2b3ae8427f5a9882294f0570047e
BLAKE2b-256 262b85d63679b9aa06e3638581d24a312c3dc3a924ae507af412fd621c03d658

See more details on using hashes here.

Supported by

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