Skip to content

Commit

Permalink
stub implementation of history_request (sent by qtconsole), pending c…
Browse files Browse the repository at this point in the history
…larification in ipython/ipython#3806
  • Loading branch information
stevengj committed Jul 27, 2013
1 parent b2e6062 commit f1da940
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions jlkernel/handlers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,23 @@ function object_info_request(socket, msg)
end
end

function history_request(socket, msg)
# we will just send back empty history for now, pending clarification
# as requested in ipython/ipython#3806
hist = []
send_ipython(requests,
msg_reply(msg, "history_reply",
["history" => [get(msg.content, "session", uuid4()),
_n, hist]]))

end

const handlers = (String=>Function)[
"execute_request" => execute_request,
"complete_request" => complete_request,
"kernel_info_request" => kernel_info_request,
"object_info_request" => object_info_request,
"connect_request" => connect_request,
"shutdown_request" => shutdown_request,
"history_request" => history_request,
]

0 comments on commit f1da940

Please sign in to comment.