Commit b1efbc1c authored by Sumit Sahrawat's avatar Sumit Sahrawat

Fix kernel death on opening notebooks with widgets

Previously, the kernel would die when opening a notebook with widgets
as there is no widget stored in the kernel when it starts.
parent 648007a4
......@@ -355,7 +355,7 @@ handleComm replier kernelState req replyHeader = do
head <- dupHeader replyHeader CommDataMessage
replier $ CommData head uuid value
case Map.lookup uuid widgets of
Nothing -> fail $ "no widget with uuid " ++ show uuid
Nothing -> return kernelState
Just (Widget widget) ->
case msgType $ header req of
CommDataMessage -> do
......
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