ChrisDelClea / streamlit-agraph

A Streamlit Graph Vis
MIT License
387 stars 52 forks source link

how to rebuild? #16

Closed zjorgensenbits closed 3 years ago

zjorgensenbits commented 3 years ago

What's the proper procedure for rebuilding after modifying one of the tsx files?

zjorgensenbits commented 3 years ago

nevermind, I figured it out: run the following from the frontend directory npm install npm run build

ChrisDelClea commented 3 years ago

Would be interesting what changes you made. Maybe we can merge them?

zjorgensenbits commented 3 years ago

I modified AgraphComponent.tsx to pass the ID of the clicked node back to python through the return value. I can try to clean it up and submit a pull request, but all I really did was add Streamlit.setComponentValue(nodeId); to the click handlers, but it seems to work well.

ChrisDelClea commented 3 years ago

Great, would be great if you could merge it! Also thanks for going along with the other open issue 👍 .

AlliedToasters commented 1 year ago

Hi @zjorgensenbits You are my hero.

jnferfer commented 9 months ago

Hi @zjorgensenbits I've also modified one of the tsx files in a forked version of the agraph repo (https://github.com/jnferfer/streamlit-agraph) Now I want to use this version in app deployment, but I don't know how to do it. In requirements.txt I've added the following line: git+https://github.com/jnferfer/streamlit-agraph.git@master But I get an error when deploying the app to Streamlit cloud. How did you manage to deploy? Thanks!