How can I run python program connected to neo4j desktop (local database) through google colaboratory -
Hello! Unfortunately, a cloud environment would not be able to find a local database (because of the localhost address). However, you can spin up a Neo4j Sandbox instance (cloud-hosted) and connect your Python program in Google Colaboratory to that. Hope this helps!
Another option might be to try the ngrok tool. ngrok allows you to create a public url that is proxied to localhost on your local machine.
So if you proxy localhost port 7687 with ngrok you should then have a public url for your local Neo4j instance that you can use to connect with the Python driver in the hosted Colab notebook.
ngrok tcp 7687