bluesky.plans.subscribe

bluesky.plans.subscribe(name, func)

Subscribe the stream of emitted documents.

Parameters:
  • name ({'all', 'start', 'descriptor', 'event', 'stop'}) –
  • func (callable) – Expected signature: f(name, doc) where name is one of the strings above (‘all, ‘start’, ...) and doc is a dict
Yields:

msg (Msg) – Msg(‘subscribe’, None, name, func)

See also

bluesky.plans.unsubscribe