Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add README info with example for fetching other types of widgets #33

Open
mofojed opened this issue Feb 21, 2024 · 0 comments
Open

Add README info with example for fetching other types of widgets #33

mofojed opened this issue Feb 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mofojed
Copy link
Member

mofojed commented Feb 21, 2024

With #29, we added support for fetching other types of widget by name and passing the session. An example:

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

We should add that example to the README

@mofojed mofojed added the enhancement New feature or request label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant