bundles / IPython latest / IPython / core / interactiveshell / InteractiveShell / should_run_async
function
IPython.core.interactiveshell:InteractiveShell.should_run_async
Signature
def should_run_async(self, raw_cell: str, *, transformed_cell = None, preprocessing_exc_tuple = None) → boolSummary
Return whether a cell should be run asynchronously via a coroutine runner
Parameters
raw_cell: strThe code to be executed
transformed_cell: strcell that was passed through transformers. Required (keyword only); run
transform_cellyourself and pass the result here.preprocessing_exc_tuple:trace if the transformation failed.
Returns
: result: boolWhether the code needs to be run with a coroutine runner or not
: .. versionadded:: 7.0: .. versionchanged:: 9.16transformed_cellis now required; the deprecated fallback that calledtransform_cellautomatically has been removed.
Aliases
IPython.InteractiveShell.should_run_async