-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Plotly Express iframes, DHC pydeephaven, envoy header fix (#29)
- Updated dependencies and types to the latest versions - Updated formatting - Fixes #17, Tested by running the following snippet in a Jupyter lab and ensuring the plot appeared correctly ```python from deephaven_server import Server s = Server(jvm_args=["-Dauthentication.psk=iris"]) s.start() from deephaven_ipywidgets import DeephavenWidget import deephaven.plot.express as dx from deephaven import time_table tt = time_table("PT1S").update(formulas=[ "Latitude = Math.random()*180.0 - 90.0", "Longitude = Math.random()*360.0 - 180.0", "Magnitude = Math.random()*3 + 5" ]) fig = dx.density_mapbox(tt, lat='Latitude', lon='Longitude', z='Magnitude', radius=10, center=dict(lat=0, lon=180), zoom=0, mapbox_style="carto-darkmatter") display(DeephavenWidget(fig)) ``` - Add support for opening DHC pydeephaven tables - Check if we're in a DndSession/the session_manager is there before trying to pull properties from it - Fixes #26, Fixes #27 - Tested using the following snippet: ```python from pydeephaven import Session from deephaven_ipywidgets import DeephavenWidget session = Session(auth_token="iris", auth_type="io.deephaven.authentication.psk.PskAuthenticationHandler") tt = session.time_table(period=1_000_000_000).update("X=i") display(DeephavenWidget(tt)) ``` - Fetch figure/objects by name when using pydeephaven - Allow passing in an object by name and a session when using pydeephaven - Fixes #28 - Tested using the following snippet: ```python from pydeephaven import Session from deephaven_ipywidgets import DeephavenWidget session = Session(auth_token="iris", auth_type="io.deephaven.authentication.psk.PskAuthenticationHandler") session.run_script(""" from deephaven import empty_table from deephaven.plot.figure import Figure t = empty_table(100).update(["X=i", "Y=i*i"]) f = Figure().plot_xy(series_name="X vs Y", t=t, x="X", y="Y").show() """) display(DeephavenWidget("f", session=session)) ``` - fix: Incompatibility with older versions of Jupyter - Fixes #30 - Test by installing older version of notebook: ```sh pip install deephaven-server notebook==6.5.6 jupyterlab pip install -e ".[test, examples]" jupyter notebook ``` - Then running in the Jupyter notebook: ```python from deephaven_server import Server s = Server(jvm_args=["-Dauthentication.psk=iris"]) s.start() from deephaven import empty_table from deephaven_ipywidgets import DeephavenWidget t = empty_table(1000).update("x=i") display(DeephavenWidget(t)) ```
- Loading branch information
Showing
7 changed files
with
349 additions
and
513 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.