File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -863,20 +863,20 @@ for all of the backend storage implementations `supported by fsspec`_,
863
863
you can skip importing and configuring the storage explicitly.
864
864
For example::
865
865
866
- >>> g = zarr.open_group("s3://zarr-demo/store", storage_options={'anon': True})
867
- >>> g['foo/bar/baz'][:].tobytes()
866
+ >>> g = zarr.open_group("s3://zarr-demo/store", storage_options={'anon': True}) # doctest: +SKIP
867
+ >>> g['foo/bar/baz'][:].tobytes() # doctest: +SKIP
868
868
b'Hello from the cloud!'
869
869
870
870
The provision of the protocol specifier "s3://" will select the correct backend.
871
871
Notice the kwargs ``storage_options ``, used to pass parameters to that backend.
872
872
873
- As of version 2.6, write mode and complex URLs are also supported, such that in ::
873
+ As of version 2.6, write mode and complex URLs are also supported, such as ::
874
874
875
875
>>> g = zarr.open_group("simplecache::s3://zarr-demo/store",
876
- ... storage_options={"s3": {'anon': True}})
877
- >>> g['foo/bar/baz'][:].tobytes() # downloads target file
876
+ ... storage_options={"s3": {'anon': True}}) # doctest: +SKIP
877
+ >>> g['foo/bar/baz'][:].tobytes() # downloads target file # doctest: +SKIP
878
878
b'Hello from the cloud!'
879
- >>> g['foo/bar/baz'][:].tobytes() # uses cached file
879
+ >>> g['foo/bar/baz'][:].tobytes() # uses cached file # doctest: +SKIP
880
880
b'Hello from the cloud!'
881
881
882
882
The second invocation here will be much faster. Note that the ``storage_options ``
You can’t perform that action at this time.
0 commit comments