I want to make Neo4j the back end to one of my GUIs and I have no idea how to create a new graph or to import an existing graph.
I have tried the package "neo4jupyter" in "https://github.com/merqurio/neo4jupyter", but always get this issue: 'LabelSetView' object is not callable
then i watched a video on youtube "https://www.youtube.com/watch?v=3JMhX1sT98U&t=967s", that talks about Graph Databases for Python Users, unfortunately i still can't get it, i don't know how to install the script.vis package, so can't "from scripts.vis import draw" :(
Thanks a lot if someone can help me !
If you want to store data from your GUI to neo4j then first thing you need to finalize what would be your front end and then according to that you should create connections.
we have so many drivers in neo4j to connect with neo4j.
could you please explain your use case to help better
emm, the problem is that, i want to show the node-graph from Neo4j to my Python GUI
@ichbinmei00 , as per my knowledge you can't visualize your graph with python GUI.
you can get the results from queries in python but for the visualization you need some JS libraries to visualize your data .
one of the simplest library to visualize you data in neovis.js.
You can go through the link yo understand better .
Here is a sample code you can use. I picked from the demo for neovis. It will work as long as you update the right credentials to connect.
- update the db user/password
- update the labels with your corresponding graph labels
- update the relationships with your relationships as well.
- update the initial cypher query to pull your data.
With that you should have a visualization that may work for you.
BTW if you are using Python, you could use py2neo to connect to the neo4j db and insert / query data. buzz me if you need some sample code.
thank u for ur code :D
ye i use python and py2neo to make my GUI, i've already done the neo4j db
i want to show users the node-relationships-graph from neo4j direct in my gui, so i think i need a visualzation-tool to import these graph.
And i've tried "neo4jupyter" like i said above, but got always an issue, also haven't get any solution to this issue " TypeError: 'LabelSetView' object is not callable", emmm...that's why i'm so worried...
IF you look at the html i am using neovis.js as the visualization. You can integrate the html code in your own code to do the visualization. I can help you a bit more if you have a sample of your schema, so i can advise what would be the JS and HTML code to put in.