# Functions
No description provided by the author
Install gonb in users local Jupyter configuration, making it available.
JupyterCursorPosToBytePos converts a `cursor_pos` in a cell, encoded in UTF-16, to a byte position in the cell text, encoded in UTF-8 by Go.
JupyterToLinesAndCursor takes as input the cell contents and a cursor (as a position in UTF16 points) and returns a slice with the individual lines and a cursor split into cursorLine and cursorCol, bytes based (meaning cursorCol is the position in the line in number of bytes).
LogDisplayData prints out the display data using `klog`.
New builds and start a kernel.
NewComposed creates a new ComposedMsg to respond to a parent message.
NewJupyterStreamWriter returns an io.Writer that forwards what is written to the Jupyter client, under the given stream name.
PublishData is a wrapper to either PublishExecuteResult or PublishDisplayData, depending if the parent message was "execute_result" or something else.
PublishDisplayData publishes data of arbitrary data-types.
PublishExecuteInput publishes a status message notifying front-ends of what code is currently being executed.
PublishExecuteResult publishes using "execute_result" method.
PublishExecutionError publishes a serialized error that was encountered during execution.
PublishHtml is a shortcut to PublishData for HTML content.
PublishJavascript is a shortcut to PublishData for javascript content to be executed.
PublishKernelStatus publishes a status message notifying front-ends of the state the kernel is in.
PublishMarkdown is a shortcut to PublishData for markdown content.
PublishUpdateDisplayData is like PublishDisplayData, but expects `transient.display_id` to be set.
PublishWriteStream prints the data string to a stream on the front-end.
SendKernelInfo sends a kernel_info_reply message.
# Constants
JupyterDataDirEnv is the name of the environment variable pointing to the data files for Jupyter, including kernel configuration.
No description provided by the author
No description provided by the author
No description provided by the author
StreamStderr defines the stream name for standard error on the front-end.
StreamStdout defines the stream name for standard out on the front-end.
# Variables
CaptureSignals list all signals to be captured: except of `os.Interrupt` (Control+C), all others trigger a clean exit of GoNB kernel.
ProtocolVersion defines the Jupyter protocol version.
# Structs
CommClose is part of the "custom messages" protocol.
CommInfoReply message sent in reply to a "comm_info_request".
CommMsg is part of the "custom messages" protocol.
CommOpen is part of the "custom messages" protocol.
CompleteReply message sent in reply to a "complete_request": used for auto-complete of the code under a certain position of the cursor.
ComposedMsg represents an entire message in a high-level structure.
Data is the exact structure returned to Jupyter.
HelpLink stores data to be displayed in the help menu of the notebook.
InspectReply message sent in reply to an "inspect_request": used for introspection on the code under a certain position of the cursor.
InvalidSignatureError is returned when the signature on a received message does not validate.
No description provided by the author
KernelInfo holds information about the kernel being served, for kernel_info_reply messages.
KernelLanguageInfo holds information about the language that this kernel executes code in.
MessageImpl represents a received message or an Error, with its return identities, and a reference to the kernel for communication.
MsgOrError describes an incoming message or a communication error.
SocketGroup holds the sockets needed to communicate with the kernel, and the key for message signing.
SyncSocket wraps a zmq socket with a lock which should be used to control write access.
# Interfaces
Message is the interface of a received message.
# Type aliases
InterruptFn is called on its own goroutine.
MIMEMap holds data that can be presented in multiple formats.
OnInputFn is the callback function.