Closed tharwan closed 7 months ago
thanks for reporting - I made some changes to how the forms are build and didn't chase them through to AutoVjsf
... applying a simple fix now
just released the fix with v0.7.10
Many thanks! Unfortunately I was coming across this issue trying to use autoui with solara, which does not yet seam to work. I will open a separate issue so you can decide there if this is something to look into.
Describe the bug when running the demo code for AutoVjsf, I get an
AttributeError: 'AutoVjsf' object has no attribute 'hbx_title'
in my environment.To Reproduce Steps to reproduce the behavior:
from ipyautoui import AutoVjsf import json from pydantic import BaseModel, Field from ipyautoui.constants import DIR_MODULE from ipyautoui._utils import display_pydantic_json
create a pydantic model (or a json-schema) defining the fields of interest
class AutoUiExample(BaseModel): text: str = Field(default="Test", description="This description is very important")
import pathlib
value = {"text": "this is a value"} ui = AutoVjsf(schema=AutoUiExample, value=value, path=pathlib.Path("test.json")) display(ui) # uncomment