Skip to content

Add a helper for automatically subscribing to hinted datakey streams, along with a helper that reproduces the output of the bluesky BEC, but using tiled websocket streaming instead - #82

Open
jwlodek wants to merge 2 commits into
bluesky:mainfrom
jwlodek:add-auto-subscribe-hint-streams-helper
Open

jwlodek wants to merge 2 commits into
bluesky:mainfrom
jwlodek:add-auto-subscribe-hint-streams-helper

Conversation

@jwlodek

@jwlodek jwlodek commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

For UIs that will be interacting with an out-of-process run engine, the current typical approach of using the BEC for live visualization will not work.

Similarly, any visualization code that leveraged the hints listed in descriptor documents would also not work in this approach. The solution this PR proposes is to rebuild the functionality using tiled websocket streaming. It adds a helper that will use subscribe_to_streams to automatically find the hinted datasets in each stream that can then be passed to a callback.

Then, targeting the same output as the bluesky BEC, I used the helper to produce BEC like outputs by subscribing to a tiled catalog instead of a document stream.

An advantage of this approach is that it can also be used in-process, meaning that a UI that supports both remote plan execution as well as in-process execution wouldn't need to handle this kind of visualization independently.

assisted by: Github Copilot, VSCode, Claude Opus 5.5

… along with a helper that reproduces the output of the bluesky BEC, but using tiled websocket streaming instead

@genematx genematx left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Jakub! A few fixes and simplifictions here: jwlodek#1 (assisted by Claude).
Also added a docs page.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants