Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jnumainville committed Aug 20, 2024
1 parent ab075ee commit 9438461
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deephaven_ipywidgets/deephaven.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,12 @@ def __init__(self, deephaven_object, height=600, width=0, session=None):

server_url, token = _check_session(session, params)

# h/ is the prefix for shared tickets used by the server
ticket = SharedTicket(b"h/" + object_id.encode("utf-8"))
session.publish_table(ticket, deephaven_object)

params["shared"] = 'Table'
params["type"] = "Table"
params["isShared"] = "true"
else:
from deephaven_server import Server
port = Server.instance.port
Expand All @@ -173,7 +175,7 @@ def __init__(self, deephaven_object, height=600, width=0, session=None):

# Generate the iframe_url from the object type
iframe_url = (
f"{server_url}iframe/{_path_for_object(deephaven_object)}/{param_string}"
f"http://localhost:4010/{_path_for_object(deephaven_object)}/{param_string}"
)

self.set_trait("server_url", server_url)
Expand Down

0 comments on commit 9438461

Please sign in to comment.