We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 928ec29 commit 28c2378Copy full SHA for 28c2378
src/xinterpreter.cpp
@@ -279,9 +279,11 @@ __get_cxx_version ()
279
return kernel_res;
280
}
281
282
- nl::json interpreter::is_complete_request_impl(const std::string& /*code*/)
+ nl::json interpreter::is_complete_request_impl(const std::string& code)
283
{
284
- return xeus::create_is_complete_reply("complete", " ");
+ if (code[code.size() - 1] == '\\')
285
+ return xeus::create_is_complete_reply("incomplete", " ");
286
+ return xeus::create_is_complete_reply("complete");
287
288
289
nl::json interpreter::kernel_info_request_impl()
0 commit comments