Saturday, August 11, 2018

connecting Jupyter and Neo4j

Jupyter

$ cd v5_property_graph
$ jupyter notebook

Web browser opens to the URL
http://localhost:8888/tree
Then open a new Python notebook.

Neo4j

I'm running Neo4j Community version 3.2.3 on a Mac. I start the client GUI and then open a browser window to
http://127.0.0.1:7474/browser/

Connect Jupyter to Neo4j

from py2neo import authenticate,Graph, Node, Relationship
authenticate("127.0.0.1:7474", "neo4j", "asdf")
graph = Graph("http://127.0.0.1:7474/browser/")
graph.delete_all()

For more, see this notebook.

No comments:

Post a Comment