Deephaven Chart Plugin
Project description
Deephaven Plugin for Charts
Custom implementation built on top of plotly express to make it compatible with deephaven tables.
Build
To create your build / development environment (skip the first two lines if you already have a venv):
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip setuptools
pip install build deephaven-plugin plotly
To build:
python -m build --wheel
The wheel is stored in dist/
.
To test within deephaven-core, note where this wheel is stored (using pwd
, for example).
Then, follow the directions in the top-level README.md to install the wheel into your Deephaven environment.
To unit test, run the following command from the root of the repo:
tox -e py
Usage
Once you have the plugin installed and the server started, the recommended way to import the package mirrors plotly express:
import deephaven.plot.express as dx
Then, you can create a table (or use an existing one) and start plotting
from deephaven.column import int_col, string_col
import deephaven.plot.express as dx
from deephaven import new_table
source = new_table(
[
string_col("Categories", ["A", "B", "C"]),
int_col("Values", [1, 3, 5]),
]
)
fig = dx.bar(table=source, x="Categories", y="Values")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for deephaven-plugin-plotly-express-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d1ce3dadbc5aa1488a6a9274bc4dbf2ab375d0e3b96ff004834af7d36a24919 |
|
MD5 | aac0078d66eb510329ae086cc2348d46 |
|
BLAKE2b-256 | dcf2c39e7aae86edbcd9edff7849c28ec329136f787a4d46febcc67c42a545e9 |
Hashes for deephaven_plugin_plotly_express-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3033a0110674ed8e6e1ceaa9534f678e6cd74a40c94cb6ac53163364c36e5e06 |
|
MD5 | 8854cc3f24b73fe51a6408b091ca6c78 |
|
BLAKE2b-256 | 7a57c708beea94d741a9355d4fc7be8ed460cad99e3db62f0bc276634c336c15 |