Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Bluesky Browser

A library of Qt widgets for searching saved bluesky data and viewing document streams either live or from disk.

This is a prototype that may be fully rewritten, abandoned, or moved into other libraries.

Launching the demo

Create a custom conda environment.

conda create -n bluesky_browser python=3 \
    bluesky jsonschema matplotlib ophyd pyqt \
    pyzmq qtpy suitcase-jsonl tornado traitlets  \
    -c lightsource2-tag
conda activate bluesky_browser

Clone and install.

git clone https://github.com/NSLS-II/bluesky-browser
cd bluesky-browser
pip install -e .

Run the demo.

bluesky-browser --demo

The above generates example data in a temporary directory and launches a Qt application to browse that data. It supposes there are two catalogs of data, abc and xyz, which could be from two instruments or perhaps “raw” data and “processed” data from the same instrument. The catalogs may be searched by date range or any custom Mongo query. Clicking on a search result pulls up a new tab with a more detailed view. There are two viewing areas to facilitate comparing data. Right-click and drag a tab to move it between areas.

To customize and extend this, generate a configuration file

bluesky-browser --generate-config

and edit it. The bluesky-browser will automatically discover and apply the configuration file if it located in the current directory where bluesky-browser is run. (In the future we will add a proper search path with other standard locations.)

Intended Scope

  • Search saved data from any databroker Catalog (backed by MongoDB or JSONL or ….).

  • View and compare data from runs. Use “hints” as defaults to guide how to view a given run, and let the user adjust from there.

  • Perform basic plot manipulations, not rising to the level of a full data analysis GUI (e.g. no nonlinear curve-fitting) but enabling some interactive tuning to provide a useful view of the data.

  • View live data streaming in from the RunEngine (via some message bus).

  • Be extensible, providing for the possibility of views that are specific to a beamline or instrument.

Current Features

  • Search multiple Catalogs (e.g. multiple beamlines) for saved data and sort search results.

  • View selected search results in individual tabs or “over-plotted” in one tab.

  • View Header, baseline readings, and line plots from saved or streaming data.

  • “Over-plot” arbitrary groups of Runs, including saved data, streaming data, or a mix of both.

Roadmap

  • Get feature parity with Best-Effort Callback.
    • Table

    • Grid

    • PeakStats

  • Add image stack viewer.

  • Enable user to change what is plotted interactively. (The hints becomes just a default.)

  • Add a way to run just the viewer part against live data (from RE).

  • Add a “Summary” widget to the top of the Header tab.

  • Add integration with suitcase for file export, starting with CSV.

  • Add context menus (right click) as an alternative way to do overplotting, etc.

  • Support “progressive search”, iteratively refining search results.

Metadata

Release files for bluesky-browser 0.1.0a7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bluesky-browser 0.1.0a7
File Size Uploaded Provenance
bluesky-browser-0.1.0a7.tar.gz 48.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for bluesky-browser 0.1.0a7
File Interpreter ABI Platform
bluesky_browser-0.1.0a7-py3-none-any.whl Python 3 none any Details

Total release size: 82.3 kB

Release files / bluesky-browser-0.1.0a7.tar.gz

Download URL bluesky-browser-0.1.0a7.tar.gz
Size 48.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d413e1ed21300e2c8a912d534c93c9f1826a1bc662996bf39f591e9a23af5049
BLAKE2b-256 checksum
How to use checksums
270ac421bf80cccd2ccb0a4f791f068b00baa90f5b9fee84268c88e6d15844fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.4.2 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8

Release files / bluesky_browser-0.1.0a7-py3-none-any.whl

Download URL bluesky_browser-0.1.0a7-py3-none-any.whl
Size 34.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
81e0a43d1c985131d193332ace06284c62d0790aae0a9677557b334b656692cd
BLAKE2b-256 checksum
How to use checksums
806f3d4939dcd5ede4bd3fec011b618ff78026aaca541861fc16149924d8bacc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.4.2 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8

Security for bluesky-browser 0.1.0a7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page