ChrisDelClea / streamlit-agraph

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

Rewrote using functional component and hook. Fix dependencies and build. add link argument #59

Open cshuphys opened 2 months ago

cshuphys commented 2 months ago

The original front end dependency is broken thus can't be build. I fix the dependency, rewrite the frontend using functional component and hook. I also fix the gitignore so that node_module is ignored and removed. In addition, I add a new argument as link. So that when it opens a new window of that link when double click on any node.

Please review, thank!

Uddhav07 commented 2 months ago

hello sir, can you add empty build folder inside frontend folder since streamlit channged its code and it requires that folder somehow

also theres this font function that is ther in node and edges which can be added tysm

Uddhav07 commented 2 months ago

when pulling with pip install git+ the frontend doesnt get added idk why if added manually, original works but in this the component doenst work

Uddhav07 commented 2 months ago

also is there any way to auto beautufi the node arrandement, its pretty bad by default

cshuphys commented 2 months ago

I only upload the src code. I didn't build it in this case so you can't just simply use pip + git to use it. I think @ChrisDelClea can merge it and build it via some CI pipeline so that you can directly use it that way. If you wanna build it, simply do npm install and npm build at the front end directory. Then you should be able to use it.