Skip to content

Conversation

@arjxn-py
Copy link
Member

@arjxn-py arjxn-py commented Oct 28, 2025

Description

Port jupytercad/JupyterCAD#782 & jupytercad/JupyterCAD#783

This adds JupyterGIS commands to support argument-based execution (commandWithParams pattern) across document and processing actions.

It enables programmatic invocation of commands (e.g., from MCP agents, chatbots, or automation layers).

Rough demo:

Screen.Recording.2025-11-12.at.15.44.47.mp4

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--969.org.readthedocs.build/en/969/
💡 JupyterLite preview: https://jupytergis--969.org.readthedocs.build/en/969/lite

@github-actions
Copy link
Contributor

Binder 👈 Launch a Binder on branch arjxn-py/jupytergis/add-describedby

@arjxn-py arjxn-py requested a review from martinRenou October 28, 2025 11:41
@arjxn-py arjxn-py added the documentation Improvements or additions to documentation label Oct 28, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 28, 2025

Integration tests report: appsharing.space

@arjxn-py arjxn-py changed the title Add describedBy to commands Switch to commands with args Oct 31, 2025
@mfisher87
Copy link
Member

Hey Arjun could you add a bit of detail to the PR description, specifically what the end-goal / motivation of this change is? I'm guessing this is prepping the ground for an implementation of a chat bot that can call these commands?

@martinRenou martinRenou added the enhancement New feature or request label Nov 4, 2025
Comment on lines +602 to +606
if (!layer || !['VectorLayer', 'ShapefileLayer'].includes(layer.type)) {
console.warn('Layer type not supported for GeoJSON export');
return;
}

Copy link
Member

Choose a reason for hiding this comment

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

I'm worried that the PR is a lot of addition without much reusing existing code. Could we try to extract some logic in reusable functions instead of copy pasting code?

Copy link
Member Author

Choose a reason for hiding this comment

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

I have refactored the layer addition commands, i also tried to refactor the document operation commands but I think not much significant code is being repeated in there & i feel it's cleaner this way. Thoughts are welcome

@mfisher87
Copy link
Member

Dope demo, Arjun!

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

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants