ipython-kernel-0.9.0.2: A library for creating kernels for IPython frontends

Safe HaskellNone
LanguageHaskell2010

IHaskell.IPython.Types

Contents

Description

This module contains all types used to create an IPython language kernel.

Synopsis

IPython kernel profile

data Profile #

A kernel profile, specifying how the kernel communicates.

Constructors

Profile 

Fields

data Transport #

The transport mechanism used to communicate with the IPython frontend.

Constructors

TCP

Default transport mechanism via TCP.

type Port = Int #

A TCP port.

type IP = String #

An IP address.

IPython kernelspecs

data KernelSpec #

Constructors

KernelSpec 

Fields

  • kernelDisplayName :: String

    Name shown to users to describe this kernel (e.g. Haskell)

  • kernelLanguage :: String

    Name for the kernel; unique kernel identifier (e.g. "haskell")

  • kernelCommand :: [String]

    Command to run to start the kernel. One of the strings maybe "{connection_file}", which will be replaced by the path to a kernel profile file (see Profile) when the command is run.

IPython messaging protocol

data Message #

A message used to communicate with the IPython frontend.

Constructors

KernelInfoRequest

A request from a frontend for information about the kernel.

KernelInfoReply

A response to a KernelInfoRequest.

Fields

CommInfoRequest

A request from a frontend for information about the comms.

CommInfoReply

A response to a CommInfoRequest.

Fields

ExecuteInput

A request from a frontend to execute some code.

Fields

ExecuteRequest

A request from a frontend to execute some code.

Fields

ExecuteReply

A reply to an execute request.

Fields

ExecuteResult

A reply to an execute request.

Fields

ExecuteError

An error reply to an execute request

Fields

PublishStatus 

Fields

PublishStream 

Fields

PublishDisplayData 

Fields

PublishOutput 

Fields

PublishInput 

Fields

Input 

Fields

Output 

Fields

IsCompleteRequest 

Fields

IsCompleteReply 

Fields

CompleteRequest 

Fields

CompleteReply 
InspectRequest 

Fields

InspectReply 

Fields

ShutdownRequest 

Fields

ShutdownReply 

Fields

ClearOutput 

Fields

RequestInput 
InputReply 
CommOpen 
CommData 
CommClose 
HistoryRequest 

Fields

HistoryReply 
SendNothing 

Instances

data MessageHeader #

A message header with some metadata.

Constructors

MessageHeader 

Fields

type Username = Text #

A username for the source of a message.

type Metadata = Map Text Text #

A metadata dictionary.

data CodeReview #

Constructors

CodeComplete 
CodeIncomplete String

String to be used to indent next line of input

CodeInvalid 
CodeUnknown 

type Width = Int #

Possible MIME types for the display data.

type Height = Int #

data StreamType #

Input and output streams.

Constructors

Stdin 
Stdout 
Stderr 

data HistoryAccessType #

Ways in which the frontend can request history. TODO: Implement fields as described in messaging spec.

replyType :: MessageType -> Maybe MessageType #

Get the reply message type for a request message type.

IPython display data message

data DisplayData #

Data for display: a string with associated MIME type.

Constructors

DisplayData MimeType Text 

data MimeType #

Instances

Eq MimeType # 
Read MimeType # 
Show MimeType # 
Generic MimeType # 

Associated Types

type Rep MimeType :: * -> * #

Methods

from :: MimeType -> Rep MimeType x #

to :: Rep MimeType x -> MimeType #

Serialize MimeType # 
type Rep MimeType # 

Orphan instances