dkapur17 / streamlit-flow

Streamlit Component to quickly create Interactive Flow Diagrams using React Flow
https://stflow.streamlit.app
MIT License
125 stars 12 forks source link

Any plan to support editable custom nodes? #19

Open imClumsyPanda opened 3 months ago

imClumsyPanda commented 3 months ago

Thanks a lot for the powerful streamlit component! I'm wondering is there any plan to support editable custom nodes like this?

image
dkapur17 commented 1 month ago

Hey @imClumsyPanda. As much as I would love to bring the full functionality of ReactFlow into this library, this is only possible through custom JSX written by the developer, and since this library is essentially a lighter version of ReactFlow to be able to do everything in Python, that kind of defeats the purpose.

Apart from that, using streamlit widgets inside a custom streamlit component is not supported by the framework, so that isn't possible either. However, I am open to ideas about how this could be implemented without having the devs have to write JSX, and would love to integrate this functionality into the library.

George-bai commented 1 week ago

@dkapur17 any plan to add features to allow one to add more inputs/ outputs to a node? I mean multiple dots at the edge of the node (each node represents one input or output). Thanks.