- class Session(host=None, port=None, never_timeout=True, session_type='python', sync_fields=0)¶
A Session object represents a connection to the Deephaven data server. It contains a number of convenience methods for asking the server to create tables, import Arrow data into tables, merge tables, run Python scripts, and execute queries.
Session objects can be used in Python with statement so that whatever happens in the with statement block, they are guaranteed to be closed upon exit.
names of the global tables available in the server after running scripts
check if the session is still alive (may refresh the session)
- bind_table(name, table)¶
Bind a table to the given name on the server so that it can be referenced by that name.
create an empty table on the server.
Import the pyarrow table as a new Deephaven table on the server.
Deephaven supports most of the Arrow data types. However, if the pyarrow table contains any field with a data type not supported by Deephaven, the import operation will fail.
- merge_tables(tables, order_by=None)¶
Merge several tables into one table on the server.
Open a table in the global scope with the given name on the server.
Create a Query object to define a sequence of operations on a Deephaven table.
Run the supplied Python script on the server.
script (str) – the Python script code
- Return type
Check for fields that have been added/deleted by other sessions and add them to the local list
This will start a new background thread when repeating=True.
repeating (bool) – Continue to check in the background for new/updated tables
- time_table(period, start_time=None)¶
Create a time table on the server.