Skip to content

Migrate focal user guide off datashader #3455

Description

@brendancol

Reason or Problem

docs/source/user_guide/focal.ipynb imports datashader, uses Canvas to aggregate values into a raster, and renders with shade/stack and the Set1 colormap.

Proposal

  • Remove the datashader imports.
  • Replace the Canvas aggregation with arr.xrs.rasterize(...).
  • Replace shade/stack and the Set1 colormap with matplotlib (matplotlib has a Set1 colormap).
  • Update the prose cells that describe the datashader workflow.
  • Re-execute the notebook so outputs and the preview image regenerate cleanly.

Done when

  • The notebook runs top to bottom with no datashader import and produces the expected plots.

Part of removing datashader as a dependency; final packaging removal is tracked in #3450.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions