Skip to content

[WIP] Add GISDocument.path attribute #631

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

mfisher87
Copy link
Member

@mfisher87 mfisher87 commented Apr 14, 2025

Description

Important

Depends on #630. Merge it first, then rebase this PR.

Will resolve #629

I'm attempting to get a GISDocument.path attribute. This requires the JS to communicate with Python, because the newUntitled() method dynamically calculates a filename.

I got a rough implementation of the Python side, but I'm struggling to understand where on the JS side I can access comm.send(...). It seems obvious I should be doing this in notebookrenderer.ts but I explored so many objects looking for comm and came up empty 🙃 Moving on to something else for now.

A little hand-holding would be wonderful, and I'll document what you teach me 🙇 Perhaps that documentation could live in the ypywidgets repository. @davidbrochart what do you think?

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

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

@mfisher87 mfisher87 added enhancement New feature or request help wanted Extra attention is needed labels Apr 14, 2025
Copy link
Contributor

Binder 👈 Launch a Binder on branch mfisher87/jupytergis/gisdocument-path

@mfisher87 mfisher87 requested a review from martinRenou April 14, 2025 22:59
@mfisher87 mfisher87 changed the title Create GISDocuments as untitled when no path provided [WIP] Add GISDocument.path attribute Apr 14, 2025
Copy link
Contributor

Integration tests report: appsharing.space

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support GISDocument().path property
1 participant