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.7.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f2e86d8086c8def060218e5e354001c5af947768103013dc7c4895733d3e710 |
|
MD5 | 40c635b64b3ecc1facf09753c1dd8146 |
|
BLAKE2b-256 | 9948b2de2142c7a11c06833d1621e1fbb765f618d3b602560527f55a585aedb4 |
Hashes for deephaven_plugin_plotly_express-0.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33c125eb4427a8319ba9e1a767f37ef6aa4f17320172168054ae5b05b9e65ca2 |
|
MD5 | de969f8fa21ec6d7ef1ba68cd3ac4796 |
|
BLAKE2b-256 | b757d9c612c3a9199774e05ad1cd166b23a293f506996a7d0ef6ab80a16397fd |