notebooks: use conf module for service endpoints instead of hardcoded URLs #136
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Notebooks have hardcoded service URLs:
nessie_tutorial.py:25—NESSIE_API = "http://nessie:19120/api/v2"polaris_tutorial.py:126—"endpoint": "http://rustfs:9000"sql_generator.py:35—CATALOG = "homelab"Fix
Notebooks can import from
conf:Or use
os.environ.get()with defaults fromstack.tomlvalues. The[lake]section already has most of these.Files
notebooks/nessie_tutorial.pynotebooks/polaris_tutorial.pynotebooks/sql_generator.py[lake.nessie.host]and[lake.nessie.port]tostack.toml