0.6.3 (2025-09-06)
Highlights
-
The
autorunargument has breaking changes and now supports three values:always,disable, andtoggleable:always: the function will re-run whenever panel inputs change. The Run button and the auto-run checkbox are disable;disable: the auto-run checkbox is disabled, but the Run button remains available;toggleable: both controls are kept; the user can enable/disable auto-run as needed.
-
Inputs of type
list[int|float|str]/typing.List[int|float|str]now use a Chip List widget; -
History function has been optimized to reduce re-renders and memory usage;
-
The default theme has been improved, the AppBar now uses a white background;
-
pydantic.BaseModelsupport now, funix will handle simple nesting. Seeexamples/pydantic_test.py. Advanced features such asreactiveare still not supported; -
Funix has an experimental redesign for layout/theming. You can now use a
nesttheme and custom icons in the theme, e.g.:{ "name": "my_theme", "funix": { "icon": "/icon.png", "icon_width": 64, "icon_height": 64, "nest": True } }- The
nesttheme automatically moves the function list bar to the top, similar to browser tabs; icon,icon_width, andicon_heightset a custom icon;iconsupports HTTP URLs and Base64 data;- If you need to export a local image, you must manually
from funix.app import appand then use Flask’ssend_fileto serve the image.
- The
-
Markdown now supports an
styleattribute on<img>and can rendermermaiddiagrams; -
datetimetypes are supported, but you must handle time zone concerns yourself; -
List[Tuple[...]]is supported for exporting nested lists of tuples; -
Chemistry support: visual chemical input and export are now supported:
- Use
funix.hint.Ketcherfor chemical input: it has 6 string properties:smiles,inchi,inchi_aux_info,inchi_key,smarts, andket. If the user inputs a reaction, theinchi,inchi_aux_info, andinchi_keyfields will be set toNone. - You can return
funix.hint.ChemStr: SMILES, SMARTS and InChI formats should be supported and will render as the corresponding SVG image; - Note: the Funix frontend now requires WebAssembly (WASM). If the user’s browser doesn’t support WASM, an API fallback may be necessary;
- Use
Bug Fixes
- title display (9685171, @Yazawazi)
- title display (true) (361b594, @Yazawazi)
argsfor autorun and justrun (c0760d3, @Yazawazi)auto_run(ffa8269, @Yazawazi)- make
reactiveworks on the class (28eb010, @Yazawazi) - make
MultipleInputandFileUploadWidgetaccept default values (20038fb, @Yazawazi) - make reactive works on callable jump (705219c, @Yazawazi)
- new fields should be updated in
reactive(3a273c3, @Yazawazi) - move
GuessingDataViewoutside for re-rendering (cbf47b4, @Yazawazi) - use lineno to sort lists (a8bb1a4, @Yazawazi)
- reactive cache callable result (8a1f286, @Yazawazi)
- drop filename (94ac9cc, @Yazawazi)
- span for render inline (f57cc1b, @Yazawazi)
- re-render for history (75f7486, @Yazawazi)
- theme: make app bar white (2ec9958, @Yazawazi)
- list of pydantic (2606e1d, @Yazawazi)
__name__attr check (115dca1, @Yazawazi)- pydantic example (1f07fa0, @Yazawazi)
- optional for
pydantic_uiall args (271838c, @Yazawazi) - support optional and list for pydantic (645ec06, @Yazawazi)
- nest mode icon render & widget parse (159f1fa, @Yazawazi)
- remove markdown div for PyDanticPanel.tsx (dacaddf, @Yazawazi)
- basemodel class check (e9a589f, @Yazawazi)
- support
imgstyle (6b7e4d9, @Yazawazi) - indigo svg width (344f8ae, @Yazawazi)
- ketcher init (ed7a2fc, @Yazawazi)
- memo structServiceProvider (7633fde, @Yazawazi)
- clear chem editor (db8044f, @Yazawazi)
list[int]now use<MultipleInput />(981ea1e, @Yazawazi)
Features
- support mermaid (4f675ff, @Yazawazi)
- support
List[str](2c11932, @Yazawazi) - support change title (b0dcd06, @Yazawazi)
- add
reactive_onlikeuseEffect(() => ..., [deps])(0c454d3, @Yazawazi) - try to reduce memory usage and re-render (908526a, @Yazawazi)
- support tuple and unpacking for reactive (fab1d11, @Yazawazi)
- support paste files into upload widget (6ba4cd1, @Yazawazi)
- add a default light theme (3b8151c, @Yazawazi)
- support
funix_icon(86661c8, @Yazawazi) - support
datetime(2e6d027, @Yazawazi) - support
pydantic.BaseModel(cc52a1b, @Yazawazi) - add focus highlight (123e272, @Yazawazi)
- support
nesttheme (69dcdd3, @Yazawazi) - support
titleforpydantic_ui(c280bd8, @Yazawazi) - support simple widget for
pydantic(9b03343, @Yazawazi) - support chem editor (fadda54, @Yazawazi)
- support svg upload (c69bd38, @Yazawazi)
- support render chem (a82a36f, @Yazawazi)
- support chem editor (45aae1f, @Yazawazi)
- support svg upload (7772fb7, @Yazawazi)
- support render chem (94c0391, @Yazawazi)
- support indigo wasm (f05b836, @Yazawazi)
- support
list[tuple[...]]for return (1972243, @Yazawazi)
Documents
Merges
- update bottom bar slogan (56bd8e4, @forrestbao)
- Merge branch 'develop' of https://github.com/TexteaInc/funix into develop (d3e3d17, @forrestbao)
- Release
0.6.2(815b3bd, @Yazawazi) - change footer Funix link back from http to https (abafdae, @forrestbao)
- change footer Funix message (dabcba4, @forrestbao)
- Merge branch 'develop' into chem (ca4f8e4, @Yazawazi)
- indigo (9862329, @Yazawazi)
- add chemistry-related examples (2976c0e, @forrestbao)