Mergedholoviz/datashader#15513.6Kstars
docs: Fix the code example and preview steps on the tiling page
By Mohd Maaz Khan, merged by hoxbro into holoviz/datashader on 22 Oct 2026
Conversation
maaz7409opened this pull request on 22 Oct 2026description.mdAuthor Description
This PR fixes the tiling page so that its
render_tilesexample and the tile preview steps uses the right variable and arguments.. Currently, the example fails withNameErrorand thenTypeError, and the preview serves the wrong folder on the wrong port, so the Bokeh map stays black. It also corrects two wrong API names in the text (ds.Imageand thepost_render_funcarguments).Changes in examples/tiling.ipynb
Cell Before After Why 4 render_tiles(extent_of_data_i_want_to_handle, ...)render_tiles(extent_of_area_i_want_to_tile, ...)Undefined name 4 tile_levels=range(6)levels=range(6)render_tileshas notile_levels4, 10 ds.Imagetf.ImageThere is no ds.Image12 accepts img,extrasargumentsaccepts imgand the keyword argumentsx,y,zHow render_tilescalls it16 cd test_tiles_outputcd tiles_output_directory/wald_tilesWhere cell 15 writes the tiles 16 python -m http.serverpython -m http.server 8080 --bind 127.0.0.1The map loads from localhost:8080; the default port is 800016 Sample output of Node's http-serverServing HTTP on 127.0.0.1 port 8080 ...What Python prints 16 bokeh.plotting.Figurebokeh.plotting.figureBokeh has no FigureanymoreRan the jupyter notebook and verified.
AI Disclosure
Tool & Model: Claude Code + Opus 5.5 (high) Usage: Found the above listed issues during audit. It also made these changes.
- I have tested all AI-generated content in my PR.
- I take responsibility for all AI-generated content in my PR.
Checklist
-
pre-commit run --fileson the notebook: passed
hoxbrocommented on 22 Oct 2026Member Thank you
hoxbromerged this pull request on 22 Oct 2026
Copied from GitHub when this site was built; comments by bots are left out.