Skip to content

Commit 683eb4f

Browse files
authored
Merge pull request #622 from afshin/revert-605
Revert Backport of #605: Fix Handling of shell.should_run_async
2 parents 7b3187d + 65e522a commit 683eb4f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

ipykernel/ipkernel.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -278,16 +278,9 @@ def run_cell(*args, **kwargs):
278278
# default case: runner is asyncio and asyncio is already running
279279
# TODO: this should check every case for "are we inside the runner",
280280
# 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-
288281
if (
289282
_asyncio_runner
290-
and should_run_async(code, transformed_cell=transformed_cell, preprocessing_exc_tuple=preprocessing_exc_tuple)
283+
and should_run_async(code)
291284
and shell.loop_runner is _asyncio_runner
292285
and asyncio.get_event_loop().is_running()
293286
):

0 commit comments

Comments
 (0)