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
090ee844
Commit
090ee844
authored
Oct 05, 2016
by
Libby Horacek
Committed by
Sumit Sahrawat
Oct 10, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reply to CommInfoRequest with actual open comms
parent
50a144ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Writer.hs
ipython-kernel/src/IHaskell/IPython/Message/Writer.hs
+2
-1
Main.hs
main/Main.hs
+2
-1
No files found.
ipython-kernel/src/IHaskell/IPython/Message/Writer.hs
View file @
090ee844
...
...
@@ -11,6 +11,7 @@ import Data.Aeson.Types (Pair)
import
Data.Map
(
Map
)
import
Data.Monoid
(
mempty
)
import
Data.Text
(
Text
,
pack
)
import
qualified
Data.Map
as
Map
import
IHaskell.IPython.Types
instance
ToJSON
LanguageInfo
where
...
...
@@ -37,7 +38,7 @@ instance ToJSON Message where
,
commInfo
=
commInfo
}
=
object
[
"comm
_info"
.=
commInfo
]
[
"comm
s"
.=
Map
.
map
(
\
comm
->
object
[
"target_name"
.=
comm
])
commInfo
]
toJSON
ExecuteRequest
{
getCode
=
code
...
...
main/Main.hs
View file @
090ee844
...
...
@@ -264,10 +264,11 @@ replyTo _ KernelInfoRequest{} replyHeader state =
})
replyTo
_
CommInfoRequest
{}
replyHeader
state
=
let
comms
=
Map
.
mapKeys
(
UUID
.
uuidToString
)
(
openComms
state
)
in
return
(
state
,
CommInfoReply
{
header
=
replyHeader
,
commInfo
=
mempty
,
commInfo
=
Map
.
map
(
\
(
Widget
w
)
->
targetName
w
)
comms
})
-- Reply to a shutdown request by exiting the main thread. Before shutdown, reply to the request to
...
...
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