publish

The publish method publishes a source ticket to a result ticket. This is a low-level method that can be used to publish any server object (not just tables) to a shared ticket.

The source ticket represents a previously fetched server object to be published, and the result ticket (typically a SharedTicket) is the ticket to publish to. Other sessions can then fetched the result ticket to access the object as long as the object is not released.

This method is used together with the fetch method to share server objects between sessions.

Note

For tables specifically, use the higher-level publish_table method instead.

Important

Shared tickets have a life cycle tied to the source. Other Deephaven sessions can only fetch tickets to access the object as long as the object is not released. When the object is released either through an explicit call of the release method, implicitly through garbage collection, or through the closing of the publishing session, the shared ticket is no longer valid.

Syntax

Parameters

ParameterTypeDescription
source_ticketTicket

The source ticket to publish from.

result_ticketTicket

The result ticket to publish to, typically a SharedTicket.

Returns

This method returns None.

Examples

Publishing a Figure object

The following example publishes a Figure (plot) object to a shared ticket so other sessions can access it.

Publishing a table using generic publish

While publish_table is recommended for tables, you can also use the generic publish method: