Skip to content

Pass http_proxy information to xarray.open_zarr #10170

Answered by keewis
loicdtx asked this question in Q&A
Discussion options

You must be logged in to vote

actually, it appears there's an even easier option: just pass storage_options={"client_kwargs": {"trust_env": True}} to xr.open_dataset:

xr.open_dataset(url, engine="zarr", storage_options={"client_kwargs": {"trust_env": True}}, ...)

(this works for the http filesystem, other filesystem implementations might have different names, e.g. "session_kwargs" instead of "client_kwargs" for gcfs)

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@loicdtx
Comment options

@keewis
Comment options

@keewis
Comment options

Answer selected by keewis
@loicdtx
Comment options

@nniraj123
Comment options

@keewis
Comment options

@nniraj123
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants