@@ -406,10 +406,11 @@ async def run_cell(*args, **kwargs):
406406 except Exception :
407407 transformed_cell = code
408408 preprocessing_exc_tuple = sys .exc_info ()
409+
409410 do_execute_args = {}
410411 if accepts_params ["cell_meta" ]:
411412 do_execute_args ["cell_meta" ] = cell_meta
412- if self . _do_exec_accepted_params ["cell_id" ]:
413+ if accepts_params ["cell_id" ]:
413414 do_execute_args ["cell_id" ] = cell_id
414415
415416 if (
@@ -422,24 +423,14 @@ async def run_cell(*args, **kwargs):
422423 preprocessing_exc_tuple = preprocessing_exc_tuple ,
423424 )
424425 ):
425- if accepts_params ["cell_id" ]:
426- coro = run_cell (
427- code ,
428- store_history = store_history ,
429- silent = silent ,
430- transformed_cell = transformed_cell ,
431- preprocessing_exc_tuple = preprocessing_exc_tuple ,
432- ** do_execute_args ,
433- )
434- else :
435- coro = run_cell (
436- code ,
437- store_history = store_history ,
438- silent = silent ,
439- transformed_cell = transformed_cell ,
440- preprocessing_exc_tuple = preprocessing_exc_tuple ,
441- ** do_execute_args ,
442- )
426+ coro = run_cell (
427+ code ,
428+ store_history = store_history ,
429+ silent = silent ,
430+ transformed_cell = transformed_cell ,
431+ preprocessing_exc_tuple = preprocessing_exc_tuple ,
432+ ** do_execute_args ,
433+ )
443434
444435 coro_future = asyncio .ensure_future (coro )
445436
0 commit comments