Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
1d9f7c35
Commit
1d9f7c35
authored
Jul 14, 2018
by
MMesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
send IOPub idle message with KernelInfoReply
parent
3fa882a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
EasyKernel.hs
ipython-kernel/src/IHaskell/IPython/EasyKernel.hs
+6
-1
Main.hs
main/Main.hs
+7
-1
No files found.
ipython-kernel/src/IHaskell/IPython/EasyKernel.hs
View file @
1d9f7c35
...
@@ -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
...
...
main/Main.hs
View file @
1d9f7c35
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment