IElixir.Socket.IOPub (IElixir v0.9.20) View Source

"IOPub: this socket is the ‘broadcast channel’ where the kernel publishes all side effects (stdout, stderr, etc.) as well as the requests coming from any client over the shell socket and its own requests on the stdin socket." From https://ipython.org/ipython-doc/dev/development/messaging.html

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Send error message. Send traceback so client can have information about what went wrong.

Send execute_input message. Send information about 'execution_count'.

Send execute_result message. This is used for sending what executed code returned.

Send stream message but with a mime type of HTML, so the content is interpolated into the result

Send stream message but with a mime type of IMAGE, so the content is interpolated into the result

Send status of sandbox: 'ok' | 'error' | 'abort'.

Send stream message. This is used for sending output of code execution.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback implementation for GenServer.init/1.

Link to this function

send_error(message, execution_count, exception_name, traceback)

View Source

Send error message. Send traceback so client can have information about what went wrong.

Link to this function

send_execute_input(message, execution_count)

View Source

Send execute_input message. Send information about 'execution_count'.

Link to this function

send_execute_result(message, text)

View Source

Send execute_result message. This is used for sending what executed code returned.

Link to this function

send_html(message, text)

View Source

Send stream message but with a mime type of HTML, so the content is interpolated into the result

Link to this function

send_image(message, execution_count, image)

View Source

Send stream message but with a mime type of IMAGE, so the content is interpolated into the result

Link to this function

send_status(status, message)

View Source

Send status of sandbox: 'ok' | 'error' | 'abort'.

Link to this function

send_stream(message, text, stream_name \\ "stdout")

View Source

Send stream message. This is used for sending output of code execution.