Commit d72c9c5b authored by Andrew Gibiansky's avatar Andrew Gibiansky

remove interface.notes file

parent 6ce959d6
......@@ -26,12 +26,18 @@
"metadata": {},
"outputs": [
{
"ename": "SyntaxError",
"evalue": "invalid syntax (<ipython-input-1-9354cdf9baf6>, line 1)",
"output_type": "pyerr",
"traceback": [
"\u001b[0;36m File \u001b[0;32m\"<ipython-input-1-9354cdf9baf6>\"\u001b[0;36m, line \u001b[0;32m1\u001b[0m\n\u001b[0;31m data Value = X Int\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid syntax\n"
"metadata": {},
"output_type": "pyout",
"prompt_number": 1,
"text": [
"X 20\n",
"Y \"Test\"\n",
"Z 0.5\n"
]
},
{
"metadata": {},
"output_type": "display_data"
}
],
"prompt_number": 1
......@@ -93,20 +99,15 @@
"cell_type": "code",
"collapsed": false,
"input": [
"2+2"
"map "
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 2,
"text": [
"4\n"
]
},
{
"html": [
"<span style='color: red; font-style: italic;'>No instance for (GHC.Show.Show ((a0 -> b0) -> [a0] -> [b0]))<br/> arising from a use of `System.IO.print'<br/>Possible fix:<br/> add an instance declaration for<br/> (GHC.Show.Show ((a0 -> b0) -> [a0] -> [b0]))<br/></span>"
],
"metadata": {},
"output_type": "display_data"
}
......
......@@ -69,6 +69,8 @@ kernel profileSrc = do
-- Read the request from the request channel.
request <- liftIO $ readChan $ shellRequestChannel interface
liftIO $ print request
-- Create a header for the reply.
replyHeader <- createReplyHeader (header request)
......@@ -170,7 +172,7 @@ replyTo interface ExecuteRequest{ getCode = code } replyHeader state = do
})
replyTo _ creq@CompleteRequest{} replyHeader state = trace (show creq) $ do
replyTo _ creq@CompleteRequest{} replyHeader state = do
cr <- makeCompletions replyHeader creq
return (state, cr)
......
I have five sockets:
- Heartbeat
- Shell
- Control
- Publish
- Raw Input
They are slightly documented here:
http://ipython.org/ipython-doc/stable/development/messaging.html#introduction
Heartbeat:
Summary: Echo anything it gets sent.
IPython uses this to check that the kernel is still alive.
Shell and Control:
Summary: Receive messages from frontend in specific format. Respond to messages.
This single ROUTER socket allows multiple incoming connections from frontends,
and this is the socket where requests for code execution, object information,
prompts, etc. are made to the kernel by any frontend. The communication on this
socket is a sequence of request/reply actions from each frontend and the
kernel.
Publish (iopub):
Summary: Kernel sends side effects to front ends.
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. There are a
number of actions in Python which generate side effects: print() writes to
sys.stdout, errors generate tracebacks, etc. Additionally, in a multi-client
scenario, we want all frontends to be able to know what each other has sent to
the kernel (this can be useful in collaborative scenarios, for example). This
socket allows both side effects and the information about communications taking
place with one client over the shell channel to be made available to all
clients in a uniform manner.
Raw Input (stdin):
Summary: Allows kernel to request raw stdin from the frontent.
This ROUTER socket is connected to all frontends, and it allows the kernel to
request input from the active frontend when raw_input() is called. The frontend
that executed the code has a DEALER socket that acts as a ‘virtual keyboard’
for the kernel while this communication is happening (illustrated in the figure
by the black outline around the central keyboard). In practice, frontends may
display such kernel requests using a special input widget or otherwise
indicating that the user is to type input for the kernel instead of normal
commands in the frontend.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment