GithubHelp home page GithubHelp logo

Comments (4)

danielballan avatar danielballan commented on June 30, 2024

It does now, unless I've misunderstood?

$ bluesky-browser --help
usage: bluesky-browser [-h] [-z ZMQ_ADDRESS] [--verbose] [--demo] catalog

Prototype bluesky data browser

positional arguments:
  catalog

optional arguments:
  -h, --help            show this help message and exit
  -z ZMQ_ADDRESS, --zmq-address ZMQ_ADDRESS
                        0MQ remote dispatcher address (host:port)
  --verbose, -v
  --demo                Launch the app with example data.

version 0.post128+g418aabe

from bluesky-browser.

CJ-Wright avatar CJ-Wright commented on June 30, 2024

Does it take messages from there as well and hand them to the RunRouter?

from bluesky-browser.

danielballan avatar danielballan commented on June 30, 2024

Yes. The documents from 0MQ are pushed through the same RunRouter as the documents from "opening" a run in the search results.

from bluesky-browser.

danielballan avatar danielballan commented on June 30, 2024

To be more specific, documents are piped from a 0MQ RemoteDispatcher into a Qt Signal

self.dispatcher = RemoteDispatcher(zmq_address)
def callback(name, doc):
if name == 'start':
log.debug("New streaming Run: uid=%r", doc['uid'])
self.documents.emit((name, doc))
self.dispatcher.subscribe(callback)

and consumed by the Viewer widget:

if zmq_address:
self.consumer_thread = ConsumerThread(zmq_address=zmq_address)
self.consumer_thread.documents.connect(self.viewer.consumer)
self.consumer_thread.start()

from bluesky-browser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.