bluesky_queueserver.is_ipython_mode

bluesky_queueserver.is_ipython_mode()[source]

The function can be used in startup scripts or modules to check if the script is running in IPython environment. The common way of checking the return value of IPython.get_ipython() function may not be reliable when the script is running in RE Worker environment. Use this function returns correct result whether the script is running in the worker environment or outside the worker and may be used in conjunction with is_re_worker_active() to obtain the information about the environment.

Returns:
boolean

True - the code is executed in IPython environment, False.