moops 0.3.2__tar.gz → 0.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {moops-0.3.2 → moops-0.3.3}/PKG-INFO +1 -1
- {moops-0.3.2 → moops-0.3.3}/pyproject.toml +1 -1
- {moops-0.3.2 → moops-0.3.3}/src/moops/embed.py +5 -1
- {moops-0.3.2 → moops-0.3.3}/src/moops/group.py +1 -5
- {moops-0.3.2 → moops-0.3.3}/README.md +0 -0
- {moops-0.3.2 → moops-0.3.3}/src/moops/__init__.py +0 -0
- {moops-0.3.2 → moops-0.3.3}/src/moops/_input_map.py +0 -0
- {moops-0.3.2 → moops-0.3.3}/src/moops/_markdown.py +0 -0
- {moops-0.3.2 → moops-0.3.3}/src/moops/_naming.py +0 -0
- {moops-0.3.2 → moops-0.3.3}/src/moops/_options.py +0 -0
- {moops-0.3.2 → moops-0.3.3}/src/moops/_parse.py +0 -0
- {moops-0.3.2 → moops-0.3.3}/src/moops/_query_params.py +0 -0
- {moops-0.3.2 → moops-0.3.3}/src/moops/_run.py +0 -0
- {moops-0.3.2 → moops-0.3.3}/src/moops/_run_button.py +0 -0
- {moops-0.3.2 → moops-0.3.3}/src/moops/interface.py +0 -0
- {moops-0.3.2 → moops-0.3.3}/src/moops/presets.py +0 -0
- {moops-0.3.2 → moops-0.3.3}/src/moops/testing.py +0 -0
|
@@ -3,6 +3,8 @@ import typing
|
|
|
3
3
|
|
|
4
4
|
import marimo as mo
|
|
5
5
|
|
|
6
|
+
from . import interface
|
|
7
|
+
|
|
6
8
|
|
|
7
9
|
class _Embed(typing.Protocol):
|
|
8
10
|
defs: typing.Mapping[str, typing.Any]
|
|
@@ -50,7 +52,9 @@ class Passthrough:
|
|
|
50
52
|
def __init__(self, source: _Embed | dict[str, typing.Any]) -> None:
|
|
51
53
|
self.defs = {
|
|
52
54
|
"result": (source if isinstance(source, dict) else source.defs)["result"],
|
|
53
|
-
"interface":
|
|
55
|
+
"interface": interface.Interface(
|
|
56
|
+
controls=typing.cast(tuple[typing.Any], ())
|
|
57
|
+
),
|
|
54
58
|
}
|
|
55
59
|
self.output = None
|
|
56
60
|
|
|
@@ -79,11 +79,7 @@ class Group:
|
|
|
79
79
|
raise ValueError("markdown_heading_offset must be non-negative")
|
|
80
80
|
_frame = inspect.currentframe()
|
|
81
81
|
_caller = _frame.f_back if _frame else None
|
|
82
|
-
if (
|
|
83
|
-
_caller is not None
|
|
84
|
-
and mo.running_in_notebook()
|
|
85
|
-
and bool(_caller.f_code.co_flags & inspect.CO_COROUTINE)
|
|
86
|
-
):
|
|
82
|
+
if _caller is not None and bool(_caller.f_code.co_flags & inspect.CO_COROUTINE):
|
|
87
83
|
warnings.warn(
|
|
88
84
|
f"args.subgroup('{prefix}') called inside an async cell, "
|
|
89
85
|
"likely the cell making the embed it is used for. "
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|