Giraphne / sqlvis

Python package to visualise SQL queries as graphs
MIT License
38 stars 7 forks source link

Display outside of jupyter notebook #4

Open Trading42 opened 6 months ago

Trading42 commented 6 months ago

Would it be simple to find a way to use the library outside of Jupyter ? I don't know anything about HTML/CSS/js, hence cannot really modify the visualize function, but I guess that generating a standalone HTML page would then allow to render it and convert it to an image.

Giraphne commented 6 months ago

In visualize.js there is a function viz that selects the d3 container for a Jupyter notebook cell as a target. You could adjust this function to make it standalone and then use vis.py from the terminal.

I don't think that would be easier than just running in Jupyter though.

hoschidude commented 2 weeks ago

Trading: did you find a solution for this ? i would like to use it outside any notebooks..

Mei

Trading42 commented 2 weeks ago

No gave up on this. Although we could probably try and ask some AI powered coding assistant to tweak vizualize.js and generate a picture a something

hoschidude commented 2 weeks ago

50000 loc is a bit hard to read. I will let you know if i find an alternative.

maybe this one: https://github.com/SQL-Vis/seeQL-npm