A background data server for Altair charts.
Altair data server
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!
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:
and carry on from there.
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 the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|altair_data_server-0.1.0-py2.py3-none-any.whl (10.1 kB) Copy SHA256 hash SHA256||Wheel||py2.py3|
|altair_data_server-0.1.0.tar.gz (9.0 kB) Copy SHA256 hash SHA256||Source||None|