|
4 | 4 |
|
5 | 5 | from adaptive import learner, runner, utils
|
6 | 6 | from adaptive._version import __version__
|
7 |
| -from adaptive.learner import (AverageLearner, BalancingLearner, BaseLearner, |
8 |
| - DataSaver, IntegratorLearner, Learner1D, |
9 |
| - Learner2D, LearnerND, make_datasaver) |
10 |
| -from adaptive.notebook_integration import (active_plotting_tasks, live_plot, |
11 |
| - notebook_extension) |
| 7 | +from adaptive.learner import ( |
| 8 | + AverageLearner, |
| 9 | + BalancingLearner, |
| 10 | + BaseLearner, |
| 11 | + DataSaver, |
| 12 | + IntegratorLearner, |
| 13 | + Learner1D, |
| 14 | + Learner2D, |
| 15 | + LearnerND, |
| 16 | + make_datasaver, |
| 17 | +) |
| 18 | +from adaptive.notebook_integration import ( |
| 19 | + active_plotting_tasks, |
| 20 | + live_plot, |
| 21 | + notebook_extension, |
| 22 | +) |
12 | 23 | from adaptive.runner import AsyncRunner, BlockingRunner, Runner
|
13 | 24 |
|
| 25 | +__all__ = [ |
| 26 | + "learner", |
| 27 | + "runner", |
| 28 | + "utils", |
| 29 | + "__version__", |
| 30 | + "AverageLearner", |
| 31 | + "BalancingLearner", |
| 32 | + "BaseLearner", |
| 33 | + "DataSaver", |
| 34 | + "IntegratorLearner", |
| 35 | + "Learner1D", |
| 36 | + "Learner2D", |
| 37 | + "LearnerND", |
| 38 | + "make_datasaver", |
| 39 | + "active_plotting_tasks", |
| 40 | + "live_plot", |
| 41 | + "notebook_extension", |
| 42 | + "AsyncRunner", |
| 43 | + "BlockingRunner", |
| 44 | + "Runner", |
| 45 | +] |
| 46 | + |
14 | 47 | with suppress(ImportError):
|
15 | 48 | # Only available if 'scikit-optimize' is installed
|
16 |
| - from adaptive.learner import SKOptLearner |
| 49 | + from adaptive.learner import SKOptLearner # noqa: F401 |
17 | 50 |
|
| 51 | + __all__.append("SKOptLearner") |
18 | 52 |
|
19 |
| -del _version |
20 |
| -del notebook_integration # to avoid confusion with `notebook_extension` |
| 53 | +# to avoid confusion with `notebook_extension` and `__version__` |
| 54 | +del _version # noqa: F821 |
| 55 | +del notebook_integration # noqa: F821 |
0 commit comments