@@ -302,34 +302,35 @@ namespace xpyt
302302
303303 bool has_debugger = (PY_MAJOR_VERSION != 3 ) || (PY_MAJOR_VERSION != 13 );
304304 nl::json rep = xeus::create_info_reply (
305- " 5.5" , // protocol_version - overwrited in xeus core
306305 " xeus-python" , // implementation
307306 XPYT_VERSION , // implementation_version
308307 " python" , // language_name
309308 PY_VERSION , // language_version
310309 " text/x-python" , // language_mimetype
311310 " .py" , // language_file_extension
312311 " ipython" + std::to_string (PY_MAJOR_VERSION ), // pygments_lexer
313- R"( { "name": "ipython", "version": )" + std::to_string (PY_MAJOR_VERSION ) + " } " ,
312+ nl::json{{ " name" , " ipython" }, { " version" , std::to_string (PY_MAJOR_VERSION )}} ,
314313 " python" , // language_nbconvert_exporter
315314 banner, // banner
316- has_debugger, // debugger
317315 help_links // help_links
318316 );
319- // use a dict, string seems to be not supported by the frontend
320- rep[" language_info" ][" codemirror_mode" ] = nl::json::object ({
321- {" name" , " ipython" },
322- {" version" , PY_MAJOR_VERSION }
323- });
317+
324318 if (has_debugger)
325319 {
326320 rep[" supported_features" ] = nl::json::array ({" debugger" });
327321 }
322+
328323 return rep;
329324 }
330325
331- void interpreter::shutdown_request_impl ()
326+ nl::json interpreter::shutdown_request_impl (bool /* restart*/ )
327+ {
328+ return xeus::create_shutdown_reply (false );
329+ }
330+
331+ nl::json interpreter::interrupt_request_impl ()
332332 {
333+ return xeus::create_interrupt_reply ();
333334 }
334335
335336 nl::json interpreter::internal_request_impl (const nl::json& content)
0 commit comments