{ } Raw JSON

bundles / IPython 9.17.0 / IPython / core / interactiveshell / InteractiveShell / run_cell_async

function

IPython.core.interactiveshell:InteractiveShell.run_cell_async

source: /dev/ipython/IPython/core/interactiveshell.py:3364

Signature

async def run_cell_async(self, raw_cell: str, store_history = False, silent = False, shell_futures = True, *, transformed_cell: str | None = None, preprocessing_exc_tuple: AnyType | None = None, cell_id = None, cell_meta = None) → ExecutionResult

Summary

Run a complete IPython cell asynchronously.

Parameters

raw_cell : str

The code (including IPython code such as %magic functions) to run.

store_history : bool

If True, the raw and translated cell will be stored in IPython's history. For user code calling back into IPython's machinery, this should be set to False.

silent : bool

If True, avoid side-effects, such as implicit displayhooks and and logging. silent=True forces store_history=False.

shell_futures : bool

If True, the code will share future statements with the interactive shell. It will both be affected by previous __future__ imports, and any __future__ imports in the code will affect the shell. If False, __future__ imports are not shared in either direction.

transformed_cell: str

cell that was passed through transformers. Required (keyword only); run transform_cell yourself and pass the result here.

preprocessing_exc_tuple:

trace if the transformation failed.

Returns

result : :class:`ExecutionResult`
: .. versionadded:: 7.0
: .. versionchanged:: 9.16

transformed_cell is now required; the deprecated fallback that called transform_cell automatically has been removed.

Aliases

  • IPython.InteractiveShell.run_cell_async