fetch

The fetch method fetches a server object by ticket and returns an ExportTicket. This is a low-level method that can be used to fetch any server object (not just tables).

The ticket represents a fetchable server object, such as a PluginClient or Fetchable. This method is used together with the publish method to share server objects between sessions.

Note

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

Syntax

Parameters

ParameterTypeDescription
ticketTicket

The ticket representing a fetchable server object.

Returns

An ExportTicket object that can be used to reference the fetched server object.

Examples

Fetching and publishing a Figure object

The following example fetches a Figure (plot) object and publishes it to a shared ticket.

Fetching a table using generic fetch

While fetch_table is recommended for tables, you can also use the generic fetch method:

Fetching a shared plugin object

The following example shows how to fetch a plugin object that was published to a shared ticket by another session.