Deephaven Plugin for Plotly
The Deephaven Plugin for Plotly. Allows for opening Plotly plots in a Deephaven environment. Any Plotly plot should be viewable by default. For example:
Scatter Plot
import plotly.express as px
df = px.data.iris()
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species",
size='petal_length', hover_data=['petal_width'])
Box Plot
import plotly.express as px
df = px.data.tips()
fig = px.box(df, x="time", y="total_bill")
Multiple Series
It's possible to have multiple kinds of series in the same figure. Here is an example driving a line and a bar plot:
from plotly.subplots import make_subplots
import plotly.graph_objects as go
fig = make_subplots(rows=1, cols=2)
fig.add_trace(
go.Scatter(x=[1, 2, 3], y=[4, 5, 6]),
row=1, col=1)
fig.add_trace(
go.Bar(x=[1, 2, 3], y=[4, 5, 6], marker=dict(color=[4, 5, 6], coloraxis="coloraxis")),
row=1, col=2)
fig.update_layout(title_text="Side By Side Subplots", showlegend=False)
Plot data from a Deephaven table
from deephaven import empty_table, numpy
import plotly.express as px
t = empty_table(300).update(formulas=["X = (double)i", "Y = Math.sin(X)"])
data = numpy.to_numpy(t, ["X", "Y"])
fig = px.line(x=data[:,0], y=data[:,1])
Build
To create your build / development environment:
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 deephaven-js-plugins repo.
Metadata
Release files for deephaven-plugin-plotly 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deephaven-plugin-plotly-0.2.0.tar.gz | 7.6 kB | Without provenance | Details for deephaven-plugin-plotly-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deephaven_plugin_plotly-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for deephaven_plugin_plotly-0.2.0-py3-none-any.whl |
Total release size: 16.1 kB
Release files / deephaven-plugin-plotly-0.2.0.tar.gz
| Download URL | deephaven-plugin-plotly-0.2.0.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1bd5faada8512c9e48f2c25265b2993bac5ab829f17109b51f8a05ac2a1c5af
|
|
BLAKE2b-256 checksum How to use checksums |
fd65a7f0d99aa0ecf9d2dc16cf8fa0d43ac4dd4026825e5130b67d5abc9fffdc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / deephaven_plugin_plotly-0.2.0-py3-none-any.whl
| Download URL | deephaven_plugin_plotly-0.2.0-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
80318feedadfa94cb53e5e2846cb2b5700e275642c5a4ed40a85f8b7de037cab
|
|
BLAKE2b-256 checksum How to use checksums |
eb195361852b833afaec8b75969e5f175e014ff14050ca84526c9612e173f787
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for deephaven-plugin-plotly 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.