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.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1af084d970eae3b6f8eb29c331e0a91e03aad6ead659a2c6e9d1b1bd8f3f7ea |
|
MD5 | 80f034c9d7db5f512f050b784afe059a |
|
BLAKE2b-256 | e162c9d4f97ed52f71bfe30245c17be9cde0d7fd572a52d596e92f14884dea04 |
Hashes for deephaven_plugin_plotly_express-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd43d6f66655d1cf75040a91e21a6f5321bb6ac01059223d4da21640149239a9 |
|
MD5 | e05aea494d1d2567d531df2329c35b48 |
|
BLAKE2b-256 | 4f07d73b8124f16117a2f8d4b8461fb266dbd6adec6fcdb15e6607982bd1f520 |