Skip to content

Commit 3d7b505

Browse files
authored
Merge pull request #589 from FlorentinD/gds-session-nb-adapt-for-staging
Adapt notebook for staging
2 parents 628edc0 + e7d9237 commit 3d7b505

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

examples/dev/gds-sessions.ipynb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,16 @@
7575
"\n",
7676
"from neo4j import GraphDatabase\n",
7777
"\n",
78+
"uri = f\"neo4j+s://{db_id}.databases.neo4j.io\"\n",
79+
"\n",
7880
"# We can tell the GDS client that we are working with a development environment.\n",
79-
"# os.environ[\"AURA_ENV\"] = \"devstrawberryfield\"\n",
81+
"# os.environ[\"AURA_ENV\"] = \"staging\"\n",
82+
"# if os.environ.get(\"AURA_ENV\"):\n",
83+
"# if os.environ[\"AURA_ENV\"] != \"staging\":\n",
84+
"# uri = f\"neo4j+s://{db_id}-{os.environ['AURA_ENV']}.databases.neo4j-dev.io\"\n",
85+
"# else:\n",
86+
"# uri = f\"neo4j+s://{db_id}-staging.databases.neo4j.io\"\n",
8087
"\n",
81-
"uri = (\n",
82-
" f\"neo4j+s://{db_id}-{os.environ['AURA_ENV']}.databases.neo4j-dev.io\"\n",
83-
" if os.environ.get(\"AURA_ENV\")\n",
84-
" else f\"neo4j+s://{db_id}.databases.neo4j.io\"\n",
85-
")\n",
8688
"\n",
8789
"db_connection_info = DbmsConnectionInfo(uri, \"neo4j\", db_password)\n",
8890
"# start a standard Neo4j Python Driver to connect to the AuraDB instance\n",

0 commit comments

Comments
 (0)