NameError: name 'Window' is not defined


Hello. I'm new to this forum, so let me know if there are any problems with my question here.

I am trying to use rasterio's windowed reading ability and I am hoping to use the following structure as shown on rasterios documentation page (
with'file.tif') as src:
   window =, window=Window(0, 0, new_height, new_width)) 
However, when I try to do this I get:
```NameError: name 'Window' is not defined```
Shouldn't Window() be imported with rasterio? Is this a problem with the version of rasterio I have downloaded or am I missing something really easy here?
print (rasterio.__version__)
Thank you for your guidance,

Join to automatically receive all group messages.