Can you draw with Streamlit?

Can you draw on a canvas using Streamlit? Especially draw according mouse events.
https://matplotlib.org/3.1.1/users/event_handling.html

Hello @cysmith, welcome to the forums !

This is not natively supported by Streamlit but should be possible using the incoming custom components in that you could expose a HTML canvas and return the content as a numpy array on mouse release.

If you’re interested to join in creating/testing some of those you’re welcome to join :wink:

1 Like