Safe Haskell | None |
---|
This module contains all types used to create an IPython language kernel.
- data Profile = Profile {}
- data Transport = TCP
- type Port = Int
- type IP = String
- data Message
- = KernelInfoRequest { }
- | KernelInfoReply {
- header :: MessageHeader
- versionList :: [Int]
- language :: String
- | ExecuteRequest {
- header :: MessageHeader
- getCode :: Text
- getSilent :: Bool
- getStoreHistory :: Bool
- getAllowStdin :: Bool
- getUserVariables :: [Text]
- getUserExpressions :: [Text]
- | ExecuteReply { }
- | PublishStatus { }
- | PublishStream { }
- | PublishDisplayData {
- header :: MessageHeader
- source :: String
- displayData :: [DisplayData]
- | PublishOutput { }
- | PublishInput {
- header :: MessageHeader
- inCode :: String
- executionCount :: Int
- | CompleteRequest {
- header :: MessageHeader
- getCode :: Text
- getCodeLine :: Text
- getCursorPos :: Int
- | CompleteReply { }
- | ObjectInfoRequest {
- header :: MessageHeader
- objectName :: Text
- detailLevel :: Int
- | ObjectInfoReply { }
- | ShutdownRequest { }
- | ShutdownReply { }
- | ClearOutput {
- header :: MessageHeader
- wait :: Bool
- | RequestInput { }
- | InputReply { }
- | CommOpen {
- header :: MessageHeader
- commTargetName :: String
- commUuid :: UUID
- commData :: Value
- | CommData { }
- | CommClose { }
- | SendNothing
- data MessageHeader = MessageHeader {}
- type Username = Text
- type Metadata = Map Text Text
- data MessageType
- = KernelInfoReplyMessage
- | KernelInfoRequestMessage
- | ExecuteReplyMessage
- | ExecuteRequestMessage
- | StatusMessage
- | StreamMessage
- | DisplayDataMessage
- | OutputMessage
- | InputMessage
- | CompleteRequestMessage
- | CompleteReplyMessage
- | ObjectInfoRequestMessage
- | ObjectInfoReplyMessage
- | ShutdownRequestMessage
- | ShutdownReplyMessage
- | ClearOutputMessage
- | InputRequestMessage
- | InputReplyMessage
- | CommOpenMessage
- | CommDataMessage
- | CommCloseMessage
- type Width = Int
- type Height = Int
- data StreamType
- data ExecutionState
- data ExecuteReplyStatus
- replyType :: MessageType -> Maybe MessageType
- data DisplayData = DisplayData MimeType Text
- data MimeType
- extractPlain :: [DisplayData] -> String
IPython kernel profile
A kernel profile, specifying how the kernel communicates.
Profile | |
|
The transport mechanism used to communicate with the IPython frontend.
TCP | Default transport mechanism via TCP. |
IPython messaging protocol
A message used to communicate with the IPython frontend.
KernelInfoRequest | A request from a frontend for information about the kernel. |
KernelInfoReply | A response to a KernelInfoRequest. |
| |
ExecuteRequest | A request from a frontend to execute some code. |
| |
ExecuteReply | A reply to an execute request. |
| |
PublishStatus | |
| |
PublishStream | |
| |
PublishDisplayData | |
| |
PublishOutput | |
| |
PublishInput | |
| |
CompleteRequest | |
| |
CompleteReply | |
| |
ObjectInfoRequest | |
| |
ObjectInfoReply | |
| |
ShutdownRequest | |
| |
ShutdownReply | |
| |
ClearOutput | |
| |
RequestInput | |
| |
InputReply | |
| |
CommOpen | |
| |
CommData | |
CommClose | |
SendNothing |
data MessageHeader Source
A message header with some metadata.
MessageHeader | |
|
data MessageType Source
The type of a message, corresponding to IPython message types.
data ExecutionState Source
The execution state of the kernel.
data ExecuteReplyStatus Source
Possible statuses in the execution reply messages.
replyType :: MessageType -> Maybe MessageTypeSource
Get the reply message type for a request message type.
IPython display data message
data DisplayData Source
Data for display: a string with associated MIME type.
extractPlain :: [DisplayData] -> StringSource