mesa
mesa copied to clipboard
JupyterViz: Allow user to specify space figure output format in svg/png & savefig kwargs
Currently, it is hardcoded to be png, because png is much faster. According to https://github.com/projectmesa/mesa/pull/1819#issuecomment-1733624072, we should allow user to pass in extra arguments to solara.FigureMatplotlib. According to https://solara.dev/api/matplotlib, the kwargs is for extra arguments to Matplotlib's savefig, i.e. Solara renders a figure by doing a savefig operation.
cc: @ankitk50. This doesn't require agreement/consensus on the design of how this is going to implemented, and so there shouldn't be any blocker.