TexteaInc / funix

Building web apps without manually creating widgets
http://funix.io
MIT License
89 stars 10 forks source link

Matplotlib figures does not display in first run #71

Closed forrestbao closed 10 months ago

forrestbao commented 10 months ago

To repeat, use this example: https://github.com/TexteaInc/funix/blob/main/examples/slider_table_plot.py

The expected matplotlib figure does not display when the Run button is clicked for the first time. It is only displayed if Run button is clicked again. Future clicks of Run button generate new plots as expected.

Yazawazi commented 10 months ago

https://github.com/TexteaInc/funix/blob/8ac9a75bd455233074cf909452c29dee3edba6b6/backend/funix/decorator/__init__.py#L1035-L1047

Fixed, please test again