From Aura console to Jupyter notebook

Hello everyone,

I have been playing with Aura, populating a few records and querying. All great! Now, I want to move from console to programming with python. I’m using Jupyter notebook and python 3.9 on a Mac. I’ve installed neo4j and all looks good. However, when trying to create the driver, I got the infamous message of connection refused.

I’ve read several topics on the same problem and tried all combinations of neo4j and bolt with +s and so on. I keep getting the same problem. I spent hours already and reaching the frustration point of giving up with this neo4j and python. There is almost zero information on how to deal with a basic problem of connecting to the database.

Any recommendation would be greatly appreciated.

Thanks much,A.R.

@a.reskala

have you tried enabled Driver debug logs?

Connection - Neo4j Python Driver Manual include

`To verify immediately that the driver can connect to the
 database (valid credentials, compatible versions, etc), use the 
.verify_connectivity() method after initializing the driver. 
In case of failure, enabling the driver’s logs can help 
diagnosing the issue.

and enabling the driver's logs hrefs to

Thank you, @dana_canzano

Appreciate your response.

I did in fact tested the driver’s creation with driver.verify_connectivity(). However, there is not much more information.

How do I enable the logs?

Best regards

@a.reskala

>> How do I enable the logs

states

Logging
The driver logs messages through the native logging library to a 
logger named neo4j. To redirect log messages to standard output,
use the watch function:

import sys
from neo4j.debug import watch

watch("neo4j", out=sys.stdout)

or was this already tried and proving unsucessful?