apache_beam.runners.utils module

Common utility module shared by runners.

For internal use only; no backwards-compatibility guarantees.

apache_beam.runners.utils.is_interactive()[source]

Determines if current code execution is in interactive environment.

Returns:
(bool) tells if current code is executed within an ipython
session.
is_in_notebook: (bool) tells if current code is executed from an ipython
notebook.
Return type:is_in_ipython

If is_in_notebook is True, then is_in_ipython must also be True.