maxfordham / ipyautoui

create ipywidgets user input form pydantic model or jsonschema
https://maxfordham.github.io/ipyautoui/
39 stars 4 forks source link

✨ Can hide NaN and set decimal places #194

Closed ollyhensby closed 11 months ago

ollyhensby commented 11 months ago

♻️ Update VegaExpr so instead sets to default_renderer

ollyhensby commented 11 months ago

image Appears to be rounding integers to 2dp too...

Let me resolve this

ollyhensby commented 11 months ago

image Appears to be rounding integers to 2dp too...

Let me resolve this

Resolved

https://github.com/maxfordham/ipyautoui/blob/23476ed074d9cd3e010802ba02fcb744c55631f2/src/ipyautoui/custom/autogrid.py#L493-L501

Checks if value is an integer by rounding itself and comparing against its true value.

image

ollyhensby commented 11 months ago

Issue with hiding NaN if global_decimal_places not defined. Fix this before merging

ollyhensby commented 11 months ago

Issue with hiding NaN if global_decimal_places not defined. Fix this before merging

Planned to fix this before merging but I will put this into a new issue and resolve there: https://github.com/maxfordham/ipyautoui/issues/196