class bluesky.utils.DefaultDuringTask[source]

This class run the Qt main loop while waiting for the plan to finish.

The default setting for the RunEngine’s during_task parameter.

This makes it possible for plots that use Matplotlib’s Qt backend to update live during data acquisition.

It solves the problem that Qt must be run from the main thread. If Matplotlib and a known Qt binding are already imported, run Matplotlib qApp until the task completes. If not, there is no need to handle qApp: just wait on the task.


Initialize backend.

Currently only the Qt backend is supported. The function is initializing the ‘teleporter’ if Qt backend is used.



Initialize backend.


Wait plan to finish.