Commit 1d9f7c35 authored by MMesch's avatar MMesch

send IOPub idle message with KernelInfoReply

parent 3fa882a4
...@@ -163,7 +163,12 @@ replyTo :: MonadIO m ...@@ -163,7 +163,12 @@ replyTo :: MonadIO m
-> Message -> Message
-> MessageHeader -> MessageHeader
-> m Message -> m Message
replyTo config _ _ KernelInfoRequest{} replyHeader = replyTo config _ interface KernelInfoRequest{} replyHeader = do
let send = writeChan (iopubChannel interface)
idleHeader <- dupHeader replyHeader StatusMessage
liftIO . send $ PublishStatus idleHeader Idle
return return
KernelInfoReply KernelInfoReply
{ header = replyHeader { header = replyHeader
......
...@@ -255,7 +255,13 @@ replyTo :: ZeroMQInterface -> Message -> MessageHeader -> KernelState -> Interpr ...@@ -255,7 +255,13 @@ replyTo :: ZeroMQInterface -> Message -> MessageHeader -> KernelState -> Interpr
-- Reply to kernel info requests with a kernel info reply. No computation needs to be done, as a -- Reply to kernel info requests with a kernel info reply. No computation needs to be done, as a
-- kernel info reply is a static object (all info is hard coded into the representation of that -- kernel info reply is a static object (all info is hard coded into the representation of that
-- message type). -- message type).
replyTo _ KernelInfoRequest{} replyHeader state = replyTo interface KernelInfoRequest{} replyHeader state = do
let send msg = liftIO $ writeChan (iopubChannel interface) msg
-- Notify the frontend that the Kernel is idle
idleHeader <- liftIO $ dupHeader replyHeader StatusMessage
send $ PublishStatus idleHeader Idle
return return
(state, KernelInfoReply (state, KernelInfoReply
{ header = replyHeader { header = replyHeader
......
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