Skip to content

Commit a09508f

Browse files
authored
Merge pull request #617 from afshin/deprecation-warning-fix
Follow up DeprecationWarning Fix
2 parents f1a32a8 + b3da331 commit a09508f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

ipykernel/ipkernel.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,17 @@ def run_cell(*args, **kwargs):
309309

310310
if (
311311
_asyncio_runner
312-
and should_run_async(code, transformed_cell=transformed_cell, preprocessing_exc_tuple=preprocessing_exc_tuple)
313312
and shell.loop_runner is _asyncio_runner
314313
and asyncio.get_event_loop().is_running()
314+
and should_run_async(code, transformed_cell=transformed_cell, preprocessing_exc_tuple=preprocessing_exc_tuple)
315315
):
316-
coro = run_cell(code, store_history=store_history, silent=silent)
316+
coro = run_cell(
317+
code,
318+
store_history=store_history,
319+
silent=silent,
320+
transformed_cell=transformed_cell,
321+
preprocessing_exc_tuple=preprocessing_exc_tuple
322+
)
317323
coro_future = asyncio.ensure_future(coro)
318324

319325
with self._cancel_on_sigint(coro_future):

0 commit comments

Comments
 (0)