DynamicTableWriter
DynamicTableWriter creates a DynamicTableWriter for writing data to a real-time, in-memory table.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| col_defs | dict | The column definitions. Each column name should have a 1-to-1 correspondence with its data type. |
Returns
Methods
DynamicTableWriter supports the following methods:
close()- Closes theDynamicTableWriter.write_row(values...)- Writes a row of values to the table.
Properties
.table- The table that theDynamicTableWriterwill write to.
Examples
In this example, DynamicTableWriter is used to create a table with two columns:
- The first contains the row number.
- The second contains a string.

The example above writes data to result from the main thread. As a result, the Deephaven web interface will not display the result table until the script finishes execution.
The example below uses a dedicated thread to write data to the table. The Deephaven web interface immediately updates to display all result table changes.