[0.5.5](https://github.com/TexteaInc/funix/commit/bce1ff6828fb6bde4ae6cb663f6f54d19e3fb7bd) (2024-02-28)
Highlights
- Initial implementation of autorun allows the frontend to automatically re-run the function as parameters are changed, you can use `autorun=True` in the decorator to enable this feature
- Once again, any function or class will be decorated with `funix` or `funix_class` (default `lazy` is back again), which you can turn off with `funix(disable=True)`
- Now allowed to generate static images directly from the Figure type (if mpld3 doesn't work for you) by using `figure_to_image=True` in the parameter of the decorator
- `IPython.display.Javascript` is now supported
- You can now customize widgets with `widgets` and `props` in the widgets and theme
python
theme = {
"widgets": {
"YOUR_WIDGET_NAME": {
"widget": "WidgetComponent, e.g. 'mui/material/TextField'",
"props": {
props for the widget
"type": "password"
}
}
}
}
- The privacy message can now be updated with `funix.app.privacy_policy` function
Bug Fixes
- use `getsourcefile` to check member (https://github.com/TexteaInc/funix/commit/fac9783c5b1b3ea27bc83fc712aa66da0292d1ae, yazawazi) <!-- 1709118263.0 -->
- custom class error (https://github.com/TexteaInc/funix/commit/9d7dad20e7db77322e8e71749cd40436720fc77f, yazawazi) <!-- 1709118263.0 -->
- privacy requests too much (https://github.com/TexteaInc/funix/commit/3c25d85c2fcf0295e9b263a2a136b9aab4b4d73f, yazawazi) <!-- 1709118263.0 -->
- backend check in privacy (https://github.com/TexteaInc/funix/commit/04126c9987ab9174f02a62a3b2350a31f06c561d, yazawazi) <!-- 1709118263.0 -->
- theme custom component parser (https://github.com/TexteaInc/funix/commit/f05b8578cdabfbcaca9079fee08a6536a4e5640b, yazawazi) <!-- 1709118263.0 -->
- do not change width in the frontend (https://github.com/TexteaInc/funix/commit/f05a065776b024593e95bc1cd27a719641c10b87, yazawazi) <!-- 1709118263.0 -->
- no wrap for grid (https://github.com/TexteaInc/funix/commit/d262755edb8498bfcf698392a9c478ae62e33c45, yazawazi) <!-- 1709118263.0 -->
- circular import (https://github.com/TexteaInc/funix/commit/9bb9a0ff2e57546f160a3e751d59e10ac38ab7ac, yazawazi) <!-- 1709118263.0 -->
- lists use wrong app and wrong value in `process_examples_and_whitelist` (https://github.com/TexteaInc/funix/commit/06e90eb9689ff09d4eb1c32bfd3dd7e4498c1dfa, yazawazi) <!-- 1709118263.0 -->
- cell doesn't working (https://github.com/TexteaInc/funix/commit/bcb9986795246543b222a5470a1c14ad6ada29fa, yazawazi) <!-- 1709118263.0 -->
- raw `draw_figure` (https://github.com/TexteaInc/funix/commit/3201ec2b1961cd06643b39668f58e189fb1c2cf4, yazawazi) <!-- 1709118263.0 -->
- tuple args parse (https://github.com/TexteaInc/funix/commit/1aa5f1aa8714d3275acdd0d079b3e4fd458384e3, yazawazi) <!-- 1709118263.0 -->
- `IPython.display` check (https://github.com/TexteaInc/funix/commit/3cac7655d4b09717c1fddfe4ee7d535d2a5decdb, yazawazi) <!-- 1709118263.0 -->
- `IPython.display` check in list (https://github.com/TexteaInc/funix/commit/a7761a073004e905ea95c56974cc310effe75062, yazawazi) <!-- 1709118263.0 -->
Features
- support both sqlite and JSON Lines for telemetry (https://github.com/TexteaInc/funix/commit/3b816d1bd0c7fc3ac79760864920243c2a31ab4a, Colerar) <!-- 1709118263.0 -->
- support autorun (https://github.com/TexteaInc/funix/commit/5954f356051ef0c9de22872b9a6d96e981e22311, yazawazi) <!-- 1709118263.0 -->
- remove `lazy` again (https://github.com/TexteaInc/funix/commit/51a734296f2a2cb7c74d55b8265bf2c66cf34395, yazawazi) <!-- 1709118263.0 -->
- support figure to image (https://github.com/TexteaInc/funix/commit/949f7cd4cb59bf91b206cf8e267ee66463d504d5, yazawazi) <!-- 1709118263.0 -->
- disable log by default (https://github.com/TexteaInc/funix/commit/8d966b6a7ae5081d316c3410272201732761d921, yazawazi) <!-- 1709118263.0 -->
- support `IPython.display.Javascript` (https://github.com/TexteaInc/funix/commit/d51f019da2007ae3b665e5826e339bf2c8b981e4, yazawazi) <!-- 1709118263.0 -->
- support update privacy message (https://github.com/TexteaInc/funix/commit/f2649a73805e6b57f8488d4864329e32c54984a3, yazawazi) <!-- 1709118263.0 -->
- try to support custom components (https://github.com/TexteaInc/funix/commit/f40d8f925c2c3ac5854bcc4479672bb5dea0c647, yazawazi) <!-- 1709118263.0 -->
- support custom components in `widgets` (https://github.com/TexteaInc/funix/commit/b4f4aaf0589a176baecadcc6eaf6a3d41b820777, yazawazi) <!-- 1709118263.0 -->
- support custom components and props in `widgets` and `theme` (https://github.com/TexteaInc/funix/commit/1c3f17bb76e191eb70d8cddfca404471c929e86c, yazawazi) <!-- 1709118263.0 -->
- user management example (https://github.com/TexteaInc/funix/commit/bcc89da8781a6d2a075b6112aff94a17cebf87f7, Colerar) <!-- 1709118263.0 -->
Documentation
- clean up examples and README (https://github.com/TexteaInc/funix/commit/a9f70074f2b723f4731af3d6cfe6dcb22005aac7, forrestbao) <!-- 1709118263.0 -->
- update README with new examples (https://github.com/TexteaInc/funix/commit/c65de88eef1c33bff2bc903b417ea468fe9b305f, forrestbao) <!-- 1709118263.0 -->
Refactors
- log and do not log (https://github.com/TexteaInc/funix/commit/8e15d7d0bae65a690dc4c10a6889b1fd07dda45f, yazawazi) <!-- 1709118263.0 -->
- sort code and partial split of decorator logic (https://github.com/TexteaInc/funix/commit/61e8517fc9a07d05f5cd861c2436887af72f9560, yazawazi) <!-- 1709118263.0 -->
- split decorator logic (https://github.com/TexteaInc/funix/commit/55555af665c4a5e7265605ce1332853823309b40, yazawazi) <!-- 1709118263.0 -->