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_ext/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

deephaven_plugin_plotly_express-0.19.3.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

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

File metadata

File hashes

Hashes for deephaven_plugin_plotly_express-0.19.3.tar.gz
Algorithm Hash digest
SHA256 cc7efed01354bcd1b34b1a724b68d59cab6cfc2f4d2796c61ca86ad9148462b3
MD5 5950d4b7875adb1b1c84c88857617720
BLAKE2b-256 e75fb034a8d147fc3f7664ad8756e18d4c7a2cc4b9a923c9c1b6f1e0fed3dc9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deephaven_plugin_plotly_express-0.19.3-py3-none-any.whl
Algorithm Hash digest
SHA256 07cf31cbe9771958ad4a14d2954a35543e800ada1f5f090873ddfaf6e3a21b04
MD5 18a4a54b8679d8348f627c7e2ade10dd
BLAKE2b-256 d9780897d64432601a43117da603e3b53a2235ba888ff38f599233cddbf51364

See more details on using hashes here.

Supported by

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