andreachild commented on code in PR #3231:
URL: https://github.com/apache/tinkerpop/pull/3231#discussion_r2402871835


##########
gremlin-python/src/main/python/examples/connections.py:
##########
@@ -40,7 +43,8 @@ def with_remote():
     #
     # which starts it in "console" mode with an empty in-memory TinkerGraph 
ready to go bound to a
     # variable named "g" as referenced in the following line.
-    rc = DriverRemoteConnection('ws://localhost:8182/gremlin', 'g')
+    server_url = os.getenv('GREMLIN_SERVER_URL', 
'ws://localhost:8182/gremlin').format(45940)

Review Comment:
   Nit: add comment with context where this weird port is coming from - same 
comment for all references to env vars in this example
   ```suggestion
       # if there is a port placeholder in the env var then we are running with 
docker so set appropriate port 
       server_url = os.getenv('GREMLIN_SERVER_URL', 
'ws://localhost:8182/gremlin').format(45940)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to