You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, a notebook code cell defines outputs as an untyped YArray where we store the output list as-is. Each item of the outputs can be of different type:
stream,
display_data,
execute_result,
error.
But for a stream output type, the structure looks like this (for e.g. an stdout stream):
Since the "text" list can be appended to as the cell is executing (by the kernel printing to stdout), the current situation is not great because we cannot observe changes to "text": the whole output in the YArray has to be set, with just that new item in the "text".
Proposed Solution
We should define an output of type stream as follows:
Problem
Currently, a notebook code cell defines outputs as an untyped YArray where we store the output list as-is. Each item of the outputs can be of different type:
stream
,display_data
,execute_result
,error
.But for a
stream
output type, the structure looks like this (for e.g. anstdout
stream):Since the
"text"
list can be appended to as the cell is executing (by the kernel printing tostdout
), the current situation is not great because we cannot observe changes to"text"
: the whole output in the YArray has to be set, with just that new item in the"text"
.Proposed Solution
We should define an output of type
stream
as follows:The text was updated successfully, but these errors were encountered: