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.
2 parents 7b3187d + 65e522a commit 683eb4fCopy full SHA for 683eb4f
ipykernel/ipkernel.py
@@ -278,16 +278,9 @@ def run_cell(*args, **kwargs):
278
# default case: runner is asyncio and asyncio is already running
279
# TODO: this should check every case for "are we inside the runner",
280
# not just asyncio
281
- preprocessing_exc_tuple = None
282
- try:
283
- transformed_cell = self.shell.transform_cell(code)
284
- except Exception:
285
- transformed_cell = code
286
- preprocessing_exc_tuple = sys.exc_info()
287
-
288
if (
289
_asyncio_runner
290
- and should_run_async(code, transformed_cell=transformed_cell, preprocessing_exc_tuple=preprocessing_exc_tuple)
+ and should_run_async(code)
291
and shell.loop_runner is _asyncio_runner
292
and asyncio.get_event_loop().is_running()
293
):
0 commit comments