Coverage for src/loman/ui/__init__.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.16.0, created at 2026-09-07 00:32 +0000

1"""Interactive notebook UI for Loman computations. 

2 

3Importing this package checks for the ``ui`` extra up front, so a missing 

4dependency fails once with a clear message rather than at some arbitrary later 

5call. Nothing in :mod:`loman` imports this package at load time. 

6""" 

7 

8from loman._extras import require 

9 

10require("anywidget", "ui") 

11require("traitlets", "ui") 

12 

13from .builder import GraphBuildError # noqa: E402 

14from .widget import ComputationWidget # noqa: E402 

15 

16__all__ = ["ComputationWidget", "GraphBuildError"]