Skip to main content

Altair data server

build status Binder Open In Colab

This is a data transformer plugin for Altair that transparently serves data for Altair charts via a background WSGI server.

Note that charts will only render as long as your Python session is active.

The data server is a good option when you'll be working locally, generating multiple charts as part of an exploration of data.

Altair data server is currently unreleased and still being tested... please let us know if you have any feedback!

Usage

First install the package and its dependencies:

$ pip install altair_data_server

Next import altair and enable the data server:

import altair as alt
alt.data_transformers.enable('data_server')

Now when you create an Altair chart, the data will be served in the background rather than embedded in the chart specification.

Once you are finished with exploration and want to generate charts that will be fully embedded in the notebook, you can restore the default data transformer:

alt.data_transformers.enable('default')

and carry on from there.

Example

Open In Colab

You can see this in action, as well as read some of the motivation for this plugin, in the example notebook: AltairDataServer.ipynb. Click the "Open in Colab" link above to run a live version of the notebook.

Download files

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

Source Distribution

altair_data_server-0.1.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

altair_data_server-0.1.0-py2.py3-none-any.whl (10.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file altair_data_server-0.1.0.tar.gz.

File metadata

  • Download URL: altair_data_server-0.1.0.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.14.2 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/3.6.7

File hashes

Hashes for altair_data_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 737f3b64c7c1abf5ddde5059b29c49fb96530cea894bf15b8e8984717fb653f5
MD5 3a5475b87c44dc511e58da76fa11db00
BLAKE2b-256 e4407fe082fc10e79a394bf5b14d0ef1a3692e771aa3791308e4a94ddaf12b91

See more details on using hashes here.

File details

Details for the file altair_data_server-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: altair_data_server-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.14.2 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/3.6.7

File hashes

Hashes for altair_data_server-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 16d47083a6e15a39306b35257ad80ac3ab95da659f8c6a4f59f97cf6b5da00fd
MD5 95f4c6d295e1230b99474c793dfca74e
BLAKE2b-256 be5b4dd8c1590a1eb4131233def2952d9c75cdf5bbf7a7293c0376e4ce8b4e0b

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