I've got a local Neo4j instance running, and I want to connect to it via jupyter.
Eventually I want to do this from within AWS, but for now I'd settle for getting it going locally.
Here's the access information for my Neo4j instance:
I've tried this in two ways, with Graph from py2neo and GraphDatabase from Neo4j.
With graphdb = Graph()
I get this error:
ClientError: [Security.Unauthorized] The client is unauthorized due to authentication failure.
With graphdb = Graph("bolt://127.0.0.1:7687")
I get the same error:
ClientError: [Security.Unauthorized] The client is unauthorized due to authentication failure.
So then I reset my password and gave graphdb = Graph("bolt://127.0.0.1:7687", secure=True, auth=("neo4j", "my password"))
a shot, which generated this error:
ConnectionUnavailable: Cannot open connection to ConnectionProfile('bolt+s://neo4j@127.0.0.1:7687')
Interestingly, using GraphDatabase
does at least connect: driver = GraphDatabase.driver("bolt://127.0.0.1:7687", auth=("neo4j", "my password"))
Now, I'm open to doing everything via GraphDatabase functionality, but it looks like most of the people doing similar work (reading and writing out of a graph database with Python and Neo4j) are doing most of this with py2neo.
Plus, it bothers me that I can't get a simple connection going.
But if the community thinks there's no reason to worry with py2neo because GraphDatabase can do everything I need, I'm fine going that way.