Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add iframe/widget endpoint for displaying widgets (#4938)
- Opens widgets from plugins or any table just by name by adding the iframe/widget path - Exposed at `/iframe/widget` - Tested by running the following code to create a plotly-express widget and some tables: ``` import deephaven.plot.express as dx from deephaven import time_table import random import pandas as pd import deephaven.pandas as dhpd df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/earthquakes-23k.csv') t = dhpd.to_table(df) sourceh = time_table("PT1S").update(formulas=[ "X = (int)random.uniform(0, 180) - 90", "Y = (int)random.uniform(0, 360) - 180", "Z = (float)random.gauss(30, 3)", "l1 = i % 20", "l2 = i % 30", ]) fig = dx.density_mapbox(t, lat='Latitude', lon='Longitude', z='Magnitude', radius=10, center=dict(lat=0, lon=180), zoom=0, mapbox_style="stamen-terrain") ``` - Then tested that each table/widget opened correctly by opening the following links: 1. plot.express: http://localhost:10000/iframe/widget/?name=fig 2. table: http://localhost:10000/iframe/widget/?name=t 3. Pandas data frame: http://localhost:10000/iframe/widget/?name=df
- Loading branch information