Skip to content

Funix 0.6.3

Latest

Choose a tag to compare

@Yazawazi Yazawazi released this 06 Sep 02:06
· 12 commits to main since this release
78cb042

0.6.3 (2025-09-06)

Highlights

  1. The autorun argument has breaking changes and now supports three values: always, disable, and toggleable:

    • 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.
  2. Inputs of type list[int|float|str] / typing.List[int|float|str] now use a Chip List widget;

  3. History function has been optimized to reduce re-renders and memory usage;

  4. The default theme has been improved, the AppBar now uses a white background;

  5. pydantic.BaseModel support now, funix will handle simple nesting. See examples/pydantic_test.py. Advanced features such as reactive are still not supported;

  6. Funix has an experimental redesign for layout/theming. You can now use a nest theme and custom icons in the theme, e.g.:

    {
        "name": "my_theme",
        "funix": {
            "icon": "/icon.png",
            "icon_width": 64,
            "icon_height": 64,
            "nest": True
        }
    }
    • The nest theme automatically moves the function list bar to the top, similar to browser tabs;
    • icon, icon_width, and icon_height set a custom icon; icon supports HTTP URLs and Base64 data;
    • If you need to export a local image, you must manually from funix.app import app and then use Flask’s send_file to serve the image.
  7. Markdown now supports an style attribute on <img> and can render mermaid diagrams;

  8. datetime types are supported, but you must handle time zone concerns yourself;

  9. List[Tuple[...]] is supported for exporting nested lists of tuples;

  10. Chemistry support: visual chemical input and export are now supported:

    • Use funix.hint.Ketcher for chemical input: it has 6 string properties: smiles, inchi, inchi_aux_info, inchi_key, smarts, and ket. If the user inputs a reaction, the inchi, inchi_aux_info, and inchi_key fields will be set to None.
    • 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;

Bug Fixes

Features

Documents

Merges