added image to docs explaining drop_axis option of map_blocks()#8868
added image to docs explaining drop_axis option of map_blocks()#8868
drop_axis option of map_blocks()#8868Conversation
drop_axis option of map_blocks()drop_axis option of map_blocks()
|
Thanks for opening this @ParticularMiner! I actually think this behavior is undesirable, so I'm going to see if I can get it working more how I expect, but this is definitely how it works now so we should still merge this in the meantime. It looks like the docs is not rendering quite right though - probably needs some whitespace. You can see the preview here: https://dask--8868.org.readthedocs.build/en/8868/generated/dask.array.map_blocks.html |
6433355 to
508159c
Compare
|
Many thanks for that link @jsignell ! Just what I was looking for! I'm still struggling to find the correct code to embed the image in the docstring, though. Any idea on how to do that? Regarding the expected behavior of Lines 869 to 872 in e49880b Moreover, there seem to be other functions and tests in |
4fe6968 to
bcf865e
Compare
bcf865e to
b72e115
Compare
5485633 to
3af9a36
Compare
|
I finally succeeded in embedding the image! 🎉 It turned out that I needed to use an absolute file path rather than a relative file path to the image file. You can see the preview (same link as above) here: |
I used the absolute rather than relative path to embed the image in the docstring. The latter fails.
3af9a36 to
a26a808
Compare
|
Thanks for persevering! |
map_blocks#8830pre-commit run --all-filesDoes this image help to clarify the docs on the
drop_axisoption ofmap_blocks()?