%run __init__.py
%load_ext lab_black
{warning}
from ipyautoui.demo_schemas import CoreIpywidgets
from ipyautoui import AutoUi, AutoDisplay
from ipyautoui.autodisplay import DisplayPath
from ipyautoui.constants import load_test_constants
from IPython.display import display
import pathlib
tests_constants = load_test_constants()
paths = list(load_test_constants().DIR_FILETYPES.glob("*.*"))
ad = AutoDisplay.from_paths(paths, display_showhide=False)
display(ad)
VBox(children=(VBox(children=(HBox(), HBox())), VBox(children=(DisplayObject(children=(HBox(children=(Valid(va…
from ipyautoui.demo_schemas import CoreIpywidgets
user_file_renderers = AutoUi.create_autodisplay_map(
ext=".aui.json", schema=CoreIpywidgets
)
tests_constants.PATH_TEST_AUI.write_text(
CoreIpywidgets(int_text_req=3, int_text_nullable=None).model_dump_json(indent=4)
)
test_ui = AutoDisplay.from_paths(
paths=[tests_constants.PATH_TEST_AUI],
renderers=user_file_renderers,
display_showhide=False,
)
display(test_ui)
VBox(children=(VBox(children=(HBox(), HBox())), VBox(children=(DisplayObject(children=(HBox(children=(Valid(va…