Skip to content

Geoviews projection plots with "lon_0" broken with cartopy 0.26.0 in RTD #1780

Closed

Description

@Sevans711

Cartopy 0.26.0 currently breaks some plots using geoviews and projections, which removed "lon_0" key from some projections. For example, the bottom cell on the readthedocs page titled "Reading Structured Grids" (https://uxarray.readthedocs.io/en/latest/user-guide/structured.html) currently has a crash instead of a plot. The crash is KeyError: 'lon_0' being raised from a line like if (isinstance(crs, ccrs.PlateCarree) and not isinstance(proj, ccrs.PlateCarree) and crs.proj4_params['lon_0'] != 0): inside of geoviews.

@rajeeja created holoviz/geoviews#884 to provide a fix upstream; it has already been accepted and merged into geoviews's main branch. According to comment in thread there, it sounds like the timeline for the next geoviews release is hopefully in the next couple of weeks.

Should we introduce pins like geoviews<=1.15.1, cartopy<0.26.0 to uxarray in the meantime? Pros: uxarray users' plots would work as expected, and not remain broken while awaiting a new geoviews release. Cons: this would block #1773 until the new geoviews release, because that PR would pin cartopy >=0.26.0 in order to support matplotlib>=3.11, solving #1542 and #1772.

(Didn't add the "fix-upstream" label yet; should add it after either adding those version pins or definitively deciding not to.)

Activity

  1. added
    visualization
    on Sep 22, 2026
  2. added
    bug
    on Sep 22, 2026
  3. moved this from 📚 Backlog to 📝 To-Do in UXarray Developmenton Sep 22, 2026
  4. self-assigned this
    on Sep 22, 2026
  5. Sevans711 commented on Sep 22, 2026

    @Sevans711
    CollaboratorAuthor

    From internal uxarray dev team discussion today: the decision was to introduce a cartopy<0.26.0 pin for now, so that uxarray users can still use plots relying on geoviews and projections.

  6. added
    dependencies
    on Sep 23, 2026
  7. Sevans711 commented on Sep 24, 2026

    @Sevans711
    CollaboratorAuthor

    Now that #1783 has merged, all that is left to do here is to wait for the next geoviews release. Then, the cartopy pin can be removed; the test_plot_topology_with_explicit_projection serves as a gate to ensure this issue remains solved after adjusting pins. Assuming tests pass at that point, hopefully #1773 can be merged as well.

    Changing "bug" label to "fix upstream" because there is currently nothing more for uxarray to do about this.

  8. added
    fix upstream
    and removed
    bug
    on Sep 24, 2026
  9. moved this from 📝 To-Do to On Pause in UXarray Developmenton Sep 24, 2026
  10. moved this from On Pause to 🏗 In progress in UXarray Developmenton Oct 26, 2026
  11. moved this from 🏗 In progress to 👀 In review in UXarray Developmenton Oct 27, 2026
  12. moved this from 👀 In review to ✅ Done in UXarray Developmenton Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

dependenciesfix upstreamvisualization

Type

No type

Fields

Priority

Medium

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions