pyrit.common.is_in_ipython_session

pyrit.common.is_in_ipython_session#

is_in_ipython_session() bool[source]#

Determines if the code is running in an IPython session.

This may be useful if the behavior of the code should change when running in an IPython session. For example, the code may display additional information or plots when running in an IPython session.

Returns:

True if the code is running in an IPython session, False otherwise.

Return type:

bool