bluesky.plan_stubs.subscribe

bluesky.plan_stubs.subscribe(name, func)[source]

Subscribe the stream of emitted documents.

Parameters
name{‘all’, ‘start’, ‘descriptor’, ‘event’, ‘stop’}
funccallable

Expected signature: f(name, doc) where name is one of the strings above (‘all, ‘start’, …) and doc is a dict

Yields
msgMsg

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