Skip to content

Wire notebook GIS widget to shared Y doc awareness#1246

Merged
martinRenou merged 2 commits intogeojupyter:mainfrom
gjmooney:awareness-python
Apr 16, 2026
Merged

Wire notebook GIS widget to shared Y doc awareness#1246
martinRenou merged 2 commits intogeojupyter:mainfrom
gjmooney:awareness-python

Conversation

@gjmooney
Copy link
Copy Markdown
Collaborator

@gjmooney gjmooney commented Apr 2, 2026

Description

This adds a getter for the newly exposed awareness so we can access it from a notebook, adds extent to the viewportState, and consolidates redundant change:center listeners.

image

Checklist

  • PR has a descriptive title and content.
  • PR description contains references to any issues the PR resolves, e.g. Resolves #XXX.
  • PR has one of the labels: documentation, bug, enhancement, feature, maintenance
  • Checks are passing.
    Failing lint checks can be resolved with:
    • pre-commit run --all-files
    • jlpm run lint
  • If you wish to be cited for your contribution, CITATION.cff contains an author entry for yourself

📚 Documentation preview: https://jupytergis--1246.org.readthedocs.build/en/1246/
💡 JupyterLite preview: https://jupytergis--1246.org.readthedocs.build/en/1246/lite
💡 Specta preview: https://jupytergis--1246.org.readthedocs.build/en/1246/lite/specta

@gjmooney gjmooney added documentation Improvements or additions to documentation enhancement New feature or request labels Apr 2, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

Binder 👈 Launch a Binder on branch gjmooney/jupytergis/awareness-python

@martinRenou
Copy link
Copy Markdown
Member

@mfisher87 for context, the "awareness" is some extra transient information that we can have with collaboration.

For now, it contains information about pointer information and selected layer. I'd like us to add the viewport information, identified feature, and longer term the selected area and other goodies like this.

It's a first step towards more Python <-> JS interactions

@gjmooney gjmooney requested a review from martinRenou April 16, 2026 10:23
@nakul-py
Copy link
Copy Markdown
Member

Thanks! Greg for adding the awareness getter 🎉🎉

Copy link
Copy Markdown
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@martinRenou martinRenou merged commit 11f788c into geojupyter:main Apr 16, 2026
14 of 16 checks passed
@gjmooney gjmooney deleted the awareness-python branch April 17, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request Needs Port To JupyterCAD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants