Skip to content

Funix 0.5.5

Choose a tag to compare

@Konoyoru435 Konoyoru435 released this 28 Feb 11:36
· 208 commits to main since this release

0.5.5 (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
    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 (fac9783, @yazawazi)
  • custom class error (9d7dad2, @yazawazi)
  • privacy requests too much (3c25d85, @yazawazi)
  • backend check in privacy (04126c9, @yazawazi)
  • theme custom component parser (f05b857, @yazawazi)
  • do not change width in the frontend (f05a065, @yazawazi)
  • no wrap for grid (d262755, @yazawazi)
  • circular import (9bb9a0f, @yazawazi)
  • lists use wrong app and wrong value in process_examples_and_whitelist (06e90eb, @yazawazi)
  • cell doesn't working (bcb9986, @yazawazi)
  • raw draw_figure (3201ec2, @yazawazi)
  • tuple args parse (1aa5f1a, @yazawazi)
  • IPython.display check (3cac765, @yazawazi)
  • IPython.display check in list (a7761a0, @yazawazi)

Features

  • support both sqlite and JSON Lines for telemetry (3b816d1, @Colerar)
  • support autorun (5954f35, @yazawazi)
  • remove lazy again (51a7342, @yazawazi)
  • support figure to image (949f7cd, @yazawazi)
  • disable log by default (8d966b6, @yazawazi)
  • support IPython.display.Javascript (d51f019, @yazawazi)
  • support update privacy message (f2649a7, @yazawazi)
  • try to support custom components (f40d8f9, @yazawazi)
  • support custom components in widgets (b4f4aaf, @yazawazi)
  • support custom components and props in widgets and theme (1c3f17b, @yazawazi)
  • user management example (bcc89da, @Colerar)

Documentation

Refactors

  • log and do not log (8e15d7d, @yazawazi)
  • sort code and partial split of decorator logic (61e8517, @yazawazi)
  • split decorator logic (55555af, @yazawazi)