Integrating Kuzu with GUI #3823
Replies: 3 comments 6 replies
-
Hi @kamalikaray, for RShiny, there isn't a way to embed Kùzu as we don't have an embeddable client library for R, so you can't generate query results if you want to work purely in R. For Plotly Dash in Python, you can extract the results of a Kùzu subgraph and pass them to a visualization library like Cytoscape.js (I believe Plotly Dash provides examples of this, which shouldn't be too hard). Alternatively, you can also look at example code for PyVis to render your query results to a graph - there are enough code examples online for this as well. Howeve, these all approaches tend to be used to visualize only small graphs and generally take a lot of custom code. In general, it takes some JavaScript library to render the components of a graph in an aesthetically pleasing way - for our browser-based visualizer Kùzu Explorer, we use the G6 graph viz library that sits on top of a Node.js API. If you can point to some examples of Python-based graph visualizations you'd like to see, we can take a look and discuss further. |
Beta Was this translation helpful? Give feedback.
-
Hi @kamalikaray, the update to allow I tested the workflow in NetworkX on a number of examples, and verified that the export to NetworkX using You can try it tomorrow once the new nightly build is available using the following steps:
You can leverage the PyVis + NetworkX integration this way to visualize your graphs in a Jupyter Notebook. I hope this answers your question. Sometime next week, we will release v0.5.0 of Kùzu that will allow you to get off the nightly build and use the stable release of Kùzu instead. Let us know if you have any further questions! |
Beta Was this translation helpful? Give feedback.
-
Hi @prrao87 , I am working on extracting the results of a Kùzu subgraph and pass them to a visualization library like Cytoscape.js in plotly dash in python. Could you please tell me which method of Kuzu subgraph extraction would be most suitable for doing this? Is it possible to pass a networkx object to it? Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hi,
Can a Kuzu graph be integrated into a graphical user interface like Dash or RShiny to create an application?
Thanks,
Kamalika
Beta Was this translation helpful? Give feedback.
All reactions