diff --git a/bluesky_widgets/_matplotlib_axes.py b/bluesky_widgets/_matplotlib_axes.py index 65d4cd9f..4de14a29 100644 --- a/bluesky_widgets/_matplotlib_axes.py +++ b/bluesky_widgets/_matplotlib_axes.py @@ -2,6 +2,7 @@ This joins our Axes model to matplotlib.axes.Axes. It is used by bluesky_widgets.qt.figures and bluesky_widgets.jupyter.figures. """ + import logging from .models.plot_specs import Axes, Line, Image diff --git a/bluesky_widgets/apps/queue_monitor/widgets.py b/bluesky_widgets/apps/queue_monitor/widgets.py index 212b8cc4..22cd0e83 100644 --- a/bluesky_widgets/apps/queue_monitor/widgets.py +++ b/bluesky_widgets/apps/queue_monitor/widgets.py @@ -1,6 +1,7 @@ """ Extendeding and supplementing the widgets import bluesky-widgets """ + from bluesky_widgets.qt.run_engine_client import ( QtReEnvironmentControls, QtReManagerConnection, diff --git a/bluesky_widgets/examples/advanced/qt_viewer_with_search.py b/bluesky_widgets/examples/advanced/qt_viewer_with_search.py index dc4bb198..1fd4825f 100644 --- a/bluesky_widgets/examples/advanced/qt_viewer_with_search.py +++ b/bluesky_widgets/examples/advanced/qt_viewer_with_search.py @@ -12,6 +12,7 @@ python -m bluesky_widgets.examples.advanced.qt_viewer_with_search localhost:XXXXX """ + from bluesky_widgets.qt import Window from bluesky_widgets.qt import gui_qt from bluesky_widgets.models.search import SearchList, Search diff --git a/bluesky_widgets/examples/headless_figures.py b/bluesky_widgets/examples/headless_figures.py index 871a37c4..731e7007 100644 --- a/bluesky_widgets/examples/headless_figures.py +++ b/bluesky_widgets/examples/headless_figures.py @@ -5,6 +5,7 @@ and it will print to stdout the names of the figures that it creates, one per line """ + import tempfile from bluesky import RunEngine diff --git a/bluesky_widgets/examples/ipy_qt_figure.py b/bluesky_widgets/examples/ipy_qt_figure.py index 4e856020..aa9753cc 100644 --- a/bluesky_widgets/examples/ipy_qt_figure.py +++ b/bluesky_widgets/examples/ipy_qt_figure.py @@ -5,6 +5,7 @@ In [1]: %run -m bluesky_widgets.examples.ipy_qt_figure """ + from bluesky import RunEngine from bluesky.plans import scan from ophyd.sim import motor, det diff --git a/bluesky_widgets/examples/ipy_qt_figures.py b/bluesky_widgets/examples/ipy_qt_figures.py index 052bdff2..1bdf537f 100644 --- a/bluesky_widgets/examples/ipy_qt_figures.py +++ b/bluesky_widgets/examples/ipy_qt_figures.py @@ -5,6 +5,7 @@ In [1]: %run -m bluesky_widgets.examples.ipy_qt_figures """ + from bluesky import RunEngine from bluesky.plans import scan from ophyd.sim import motor, det diff --git a/bluesky_widgets/examples/ipy_qt_images.py b/bluesky_widgets/examples/ipy_qt_images.py index 74748faa..a6aacf66 100644 --- a/bluesky_widgets/examples/ipy_qt_images.py +++ b/bluesky_widgets/examples/ipy_qt_images.py @@ -5,6 +5,7 @@ In [1]: %run -m bluesky_widgets.examples.ipy_qt_images """ + from bluesky_widgets.examples.utils.generate_msgpack_data import get_catalog from bluesky_widgets.models.auto_plot_builders import AutoImages from bluesky_widgets.qt.figures import QtFigures diff --git a/bluesky_widgets/examples/ipy_qt_rastered_image.py b/bluesky_widgets/examples/ipy_qt_rastered_image.py index 2e74b1c5..1f49f1d8 100644 --- a/bluesky_widgets/examples/ipy_qt_rastered_image.py +++ b/bluesky_widgets/examples/ipy_qt_rastered_image.py @@ -5,6 +5,7 @@ In [1]: %run -m bluesky_widgets.examples.ipy_qt_rastered_image """ + from bluesky_widgets.examples.utils.generate_msgpack_data import get_catalog from bluesky_widgets.models.plot_builders import RasteredImages from bluesky_widgets.qt.figures import QtFigure diff --git a/bluesky_widgets/examples/jupyter_viewer.py b/bluesky_widgets/examples/jupyter_viewer.py index 57614228..39c2f614 100644 --- a/bluesky_widgets/examples/jupyter_viewer.py +++ b/bluesky_widgets/examples/jupyter_viewer.py @@ -12,6 +12,7 @@ python -m bluesky_widgets.examples.qt_viewer_with_search localhost:XXXXX """ + from bluesky_widgets.models.auto_plot_builders import AutoLines from bluesky_widgets.jupyter.figures import JupyterFigures diff --git a/bluesky_widgets/examples/kafka_figures.py b/bluesky_widgets/examples/kafka_figures.py index 280b930e..b1caa507 100644 --- a/bluesky_widgets/examples/kafka_figures.py +++ b/bluesky_widgets/examples/kafka_figures.py @@ -6,6 +6,7 @@ For each Run, it will generate thumbnails and save them to a temporary directory. The filepaths will be printed to the stdout, one per line. """ + from functools import partial import os import tempfile diff --git a/bluesky_widgets/examples/pyFAI_dialog.py b/bluesky_widgets/examples/pyFAI_dialog.py index 44fecb93..c0ba619e 100755 --- a/bluesky_widgets/examples/pyFAI_dialog.py +++ b/bluesky_widgets/examples/pyFAI_dialog.py @@ -6,6 +6,7 @@ The changes are marked below with comments. """ + #!/usr/bin/env python # -*- coding: utf-8 -*- # diff --git a/bluesky_widgets/examples/qt_app_integration.py b/bluesky_widgets/examples/qt_app_integration.py index fa5e798f..0f3e8391 100644 --- a/bluesky_widgets/examples/qt_app_integration.py +++ b/bluesky_widgets/examples/qt_app_integration.py @@ -3,6 +3,7 @@ python -m bluesky_widgets.examples.qt_app_integration """ + from qtpy.QtWidgets import QApplication, QVBoxLayout, QLabel, QMainWindow, QWidget diff --git a/bluesky_widgets/examples/qt_app_search_integration.py b/bluesky_widgets/examples/qt_app_search_integration.py index 23e9bb91..007bd8bc 100644 --- a/bluesky_widgets/examples/qt_app_search_integration.py +++ b/bluesky_widgets/examples/qt_app_search_integration.py @@ -3,6 +3,7 @@ python -m bluesky_widgets.examples.qt_app_integration """ + from qtpy.QtWidgets import ( QApplication, QPushButton, diff --git a/bluesky_widgets/examples/qt_run_tree_view.py b/bluesky_widgets/examples/qt_run_tree_view.py index 0a712ad1..33ff48bb 100644 --- a/bluesky_widgets/examples/qt_run_tree_view.py +++ b/bluesky_widgets/examples/qt_run_tree_view.py @@ -3,6 +3,7 @@ application this would be used in conjunction with a data browser/search box or on the command line to explore runs. """ + from bluesky_widgets.models.run_tree import RunTree from bluesky_widgets.qt import Window from bluesky_widgets.qt import gui_qt diff --git a/bluesky_widgets/examples/qt_search.py b/bluesky_widgets/examples/qt_search.py index bd6f46ee..322f0c9c 100644 --- a/bluesky_widgets/examples/qt_search.py +++ b/bluesky_widgets/examples/qt_search.py @@ -3,6 +3,7 @@ terminal. In a real application, this could kick off data processing, export, or visualization. """ + from bluesky_widgets.qt import Window, gui_qt from bluesky_widgets.models.search import SearchList, Search from bluesky_widgets.qt.search import QtSearches diff --git a/bluesky_widgets/examples/utils/stream_data_kafka.py b/bluesky_widgets/examples/utils/stream_data_kafka.py index 9be0c9f0..03fc0d85 100644 --- a/bluesky_widgets/examples/utils/stream_data_kafka.py +++ b/bluesky_widgets/examples/utils/stream_data_kafka.py @@ -6,6 +6,7 @@ It will publish Bluesky documents to kafka running on localhost:9092 until stopped. """ + import asyncio import logging from functools import partial diff --git a/bluesky_widgets/models/plot_specs.py b/bluesky_widgets/models/plot_specs.py index d5630b4a..88230d46 100644 --- a/bluesky_widgets/models/plot_specs.py +++ b/bluesky_widgets/models/plot_specs.py @@ -6,6 +6,7 @@ not know about their parents: thus, Figures know about their Axes and Axes know about their Artists. """ + import collections import uuid as uuid_module diff --git a/bluesky_widgets/models/search.py b/bluesky_widgets/models/search.py index cc444fab..b17ab39f 100644 --- a/bluesky_widgets/models/search.py +++ b/bluesky_widgets/models/search.py @@ -19,7 +19,7 @@ class InvertedRange(ValueError): - ... + pass """ @@ -38,11 +38,11 @@ class Query(collections.abc.Mapping): @abc.abstractproperty def query(self): - ... + pass @abc.abstractproperty def kwargs(self): - ... + pass def __iter__(self): return iter(self.query) diff --git a/bluesky_widgets/qt/_main_window.py b/bluesky_widgets/qt/_main_window.py index 4f6f055e..14d59523 100644 --- a/bluesky_widgets/qt/_main_window.py +++ b/bluesky_widgets/qt/_main_window.py @@ -2,6 +2,7 @@ Custom Qt widgets that serve as native objects that the public-facing elements wrap. """ + import time from qtpy.QtWidgets import ( # noqa: E402 diff --git a/bluesky_widgets/qt/threading.py b/bluesky_widgets/qt/threading.py index 4b4870b8..a39a73bd 100644 --- a/bluesky_widgets/qt/threading.py +++ b/bluesky_widgets/qt/threading.py @@ -1,6 +1,7 @@ """ Vendored from napari._qt.threading """ + import inspect import time from functools import wraps