JupyterOutput#
- class rubin.nublado.client.JupyterOutput(content, done=False)#
Bases:
objectOutput from a Jupyter lab kernel.
Parsing WebSocket messages will result in a stream of these objects with partial output, ending in a final one with the
doneflag set.Note that there is some subtlety here: a notebook cell can either print its output (that is, write to stdout), or, in an executed notebook, the cell will display the last Python command run.
These are currently represented by two unhandled message types,
execute_result(which is the result of the last Python command run; this is analogous to what you get in the Pytheon REPL loop) anddisplay_data.display_datawould be what you get, for instance, when you ask Bokeh to show a figure: it’s a bunch of Javascript that will be interpreted by your browser.The protocol is found at https://jupyter-client.readthedocs.io/en/latest/ but what we want to use is half a layer above that. We care what some messages on the various channels are, but not at all about the low-level implementation details of how those channels are established over ZMQ, for instance.
Attributes Summary
Partial output from code execution (may be empty).
Whether this indicates the end of execution.
Attributes Documentation