Use environment variables with chowder.sql()
Copy your Cloud API URL from Step 2 under Get started on your Chowder Cloud dashboard. For self-hosted compute, use the URL provided by the server operator. Set these variables before launching Python or your notebook kernel.chowder.display(result) with print(result) in a terminal script:
chowder.sql() uses a shared default engine. Set the environment before Chowder creates it. If the engine already exists, finish or cancel its work and call chowder.close() before your next query. You can also restart your notebook kernel and set the variables again. Call chowder.close() when you finish using the default engine.
Select remote compute with Python
For explicit engine configuration and lifecycle control, setCHOWDER_API_URL and CHOWDER_API_TOKEN as shown above, then use remote=True to opt in for that engine.
CHOWDER_API_URL when opting in with CHOWDER_REMOTE=1 or Engine(remote=True). If the URL is unset or blank, Chowder raises ValueError when creating the engine. You can also pass an explicit location= to select an endpoint and opt in for that engine.
Keep control with Python
Configuring a URL and token alone does not enable remote compute.
remote=False cannot be combined with an explicit remote location=; contradictory settings raise a configuration error.
token= overrides CHOWDER_API_TOKEN. Local engines do not use the remote credential.
Connect to a self-hosted endpoint
The same client settings work with a self-hosted server. SetCHOWDER_API_URL to the endpoint provided by its operator and CHOWDER_API_TOKEN to your client credential, then opt in to remote compute as above. For example:
What stays local
- SQL parsing and planning
- AI-aware predicate ordering and
LIMITcontrol - Source discovery and local file access
- Native JSON, CSV, Parquet, and MCAP reads