Skip to main content

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")

Docs

Docs can be built locally

Install the necessary dependencies:

pip install -r sphinx-requirements.txt
pip install dist/deephaven_plugin_plotly_express-*.whl

then run the docs make script:

python make_docs.py

The files will be built into docs/build/markdown. Note that these built files should not be committed to the repository.

Project details


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

File details

Details for the file deephaven_plugin_plotly_express-0.11.0.tar.gz.

File metadata

File hashes

Hashes for deephaven_plugin_plotly_express-0.11.0.tar.gz
Algorithm Hash digest
SHA256 a36539efa14e077a0aa8e32b472ae4420595a9eaa3cf1f110d766ebd2fadd1c2
MD5 a64f8019adc987d857b1b886b4219ae3
BLAKE2b-256 987c53c01a27fbf18c551f916460c6c762eb154c1a26f5e1b47875b0d110037a

See more details on using hashes here.

File details

Details for the file deephaven_plugin_plotly_express-0.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for deephaven_plugin_plotly_express-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0efa77ef065d9bdfb5b63042388e7dbec611a070466cf39e4f165a4db47eb0c8
MD5 9a4c2eeda2273188704c46344137feaf
BLAKE2b-256 f71e08f44430cee7387d495a26f5ce1be017fb8d28f510c3b5495f760690e0db

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page