parameters: (
          self, raw_cell: str, *, transformed_cell=None, preprocessing_exc_tuple=None
      )
return_statement: return _should_be_async(cell)
docstring: Return whether a cell should be run asynchronously via a coroutine runner
  
          Parameters
          ----------
          raw_cell: str
              The code to be executed
  
          Returns
          -------
          result: bool
              Whether the code needs to be run with a coroutine runner or not
  
          .. versionadded:: 7.0
docstring_summary: Return whether a cell should be run asynchronously via a coroutine runner
docstring_tokens: Return whether a cell should be run asynchronously via a coroutine runner
function: def should_run_async(
          self, raw_cell: str, *, transformed_cell=None, preprocessing_exc_tuple=None
      ) -> bool:
          """Return whether a cell should be run asynchronously via a coroutine runner
  
          Parameters
          ----------
          raw_cell: str
              The code to be executed
  
          Returns
          -------
          result: bool
              Whether the code needs to be run with a coroutine runner or not
  
          .. versionadded:: 7.0
          """
          if not self.autoawait:
              return False
          if preprocessing_exc_tuple is not None:
              return False
          assert preprocessing_exc_tuple is None
          if transformed_cell is None:
              warnings.warn(
                  "`should_run_async` will not call `transform_cell`"
                  " automatically in the future. Please pass the result to"
                  " `transformed_cell` argument and any exception that happen"
                  " during the"
                  "transform in `preprocessing_exc_tuple` in"
                  " IPython 7.17 and above.",
                  DeprecationWarning,
                  stacklevel=2,
              )
              try:
                  cell = self.transform_cell(raw_cell)
              except Exception:
                  # any exception during transform will be raised
                  # prior to execution
                  return False
          else:
              cell = transformed_cell
          return _should_be_async(cell)
function_tokens: def should_run_async ( self , raw_cell : str , * , transformed_cell = None , preprocessing_exc_tuple = None ) -> bool : if not self . autoawait : return False if preprocessing_exc_tuple is not None : return False assert preprocessing_exc_tuple is None if transformed_cell is None : warnings . warn ( "`should_run_async` will not call `transform_cell`" " automatically in the future. Please pass the result to" " `transformed_cell` argument and any exception that happen" " during the" "transform in `preprocessing_exc_tuple` in" " IPython 7.17 and above." , DeprecationWarning , stacklevel = 2 , ) try : cell = self . transform_cell ( raw_cell ) except Exception : # any exception during transform will be raised # prior to execution return False else : cell = transformed_cell return _should_be_async ( cell )