maaz.code logo
Simple view

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

+9−139 lines added, 13 lines removed1 file changed1 comment

Conversation

  1. maaz7409opened this pull request on 22 Oct 2026description.mdAuthor

    Description

    This PR fixes the tiling page so that its render_tiles example and the tile preview steps uses the right variable and arguments.. Currently, the example fails with NameError and then TypeError, 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.Image and the post_render_func arguments).

    Changes in examples/tiling.ipynb

    CellBeforeAfterWhy
    4render_tiles(extent_of_data_i_want_to_handle, ...)render_tiles(extent_of_area_i_want_to_tile, ...)Undefined name
    4tile_levels=range(6)levels=range(6)render_tiles has no tile_levels
    4, 10ds.Imagetf.ImageThere is no ds.Image
    12accepts img , extras argumentsaccepts img and the keyword arguments x, y, zHow render_tiles calls it
    16cd test_tiles_outputcd tiles_output_directory/wald_tilesWhere cell 15 writes the tiles
    16python -m http.serverpython -m http.server 8080 --bind 127.0.0.1The map loads from localhost:8080; the default port is 8000
    16Sample output of Node's http-serverServing HTTP on 127.0.0.1 port 8080 ...What Python prints
    16bokeh.plotting.Figurebokeh.plotting.figureBokeh has no Figure anymore

    Ran 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 --files on the notebook: passed
  2. hoxbrocommented on 22 Oct 2026Member

    Thank you

  3. hoxbromerged this pull request on 22 Oct 2026

Copied from GitHub when this site was built; comments by bots are left out.