Skip to content

Conversation

mapninja
Copy link
Contributor

@mapninja mapninja commented Aug 13, 2025

Resolves Issue #783

Description

  • moved JGIS files and data sources to /data/ folder.
  • updated Jupyter notebooks for creating a new JGIS document, exploring data in a map, and opening existing JGIS projects to correct data and file paths.
  • renamed files for better description & future organization into "paths"

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

Copy link
Contributor

Binder 👈 Launch a Binder on branch mapninja/jupytergis-docwork/main

Copy link
Contributor

github-actions bot commented Aug 14, 2025

Integration tests report: appsharing.space

Copy link
Member

@arjxn-py arjxn-py left a comment

Choose a reason for hiding this comment

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

Hi @mapninja, Thanks for starting this :)
I think this needs some rework as the original idea was to move the data files such as eq.geojson, france_regions.gsojson, geotiff-example.tif in the examples/data/ directory but I see that we have also moved .jGIS files (A .jGIS file is the project file format for JupyterGIS.)

@arjxn-py arjxn-py added the documentation Improvements or additions to documentation label Aug 14, 2025
@mfisher87
Copy link
Member

mfisher87 commented Aug 19, 2025

Hey Stace! Thanks for this! There are some overlapping changes between this PR and #878 . How should we think about how these 2 PRs are related? Does one depend on the other?

I'm also curious about your thoughts on JGIS files living in the data/ directory - previously we considered those to be the examples, and e.g. GeoJSON, GeoTIFF, etc. files to be the data. I was thinking the JGIS files should live in the root of examples/ but I could be convinced :)

@mapninja
Copy link
Contributor Author

These 2 PRs are sequential, with one a continuation of the other.
I can see leaving the jGIS files in the main /examples/ directory, since they are technically "documents." I think my thinking was that they are documents, but they are dependent upon an ipynb to be opened, so I put them into the /data/ directory to keep that higher level /examples/ directory clean, particularly if we will be creating many more of these example.ipynb

@mfisher87
Copy link
Member

mfisher87 commented Aug 19, 2025

These 2 PRs are sequential, with one a continuation of the other.

Cool! Which one is first?

they are dependent upon an ipynb to be opened

This is actually not the case, you can directly double-click a .jGIS file :)

@mapninja
Copy link
Contributor Author

872, then 878.

@mfisher87 mfisher87 mentioned this pull request Aug 20, 2025
@mfisher87
Copy link
Member

Thanks, Stace! Is it OK if I push to this branch or are you actively working on this?

@mfisher87
Copy link
Member

Stuff I'd like to push: mfisher87@ae85779

@mapninja
Copy link
Contributor Author

go for it

@mfisher87
Copy link
Member

Pushed! What do you think?

@mfisher87
Copy link
Member

It's taking a bit of time for me to get through all the new stuff on GitHub, my apologies!

@mfisher87
Copy link
Member

I got the examples files to copy into the JupyterLite docs deployment about as well as I think I possibly can. The .qgz files are copied in, which I don't want, but there's no good way to exclude them and copy in a nested directory structure.

jupyterlite/jupyterlite-sphinx#309
jupyterlite/jupyterlite-sphinx#307

@mfisher87
Copy link
Member

bot please update snapshots

@mfisher87
Copy link
Member

bot please update snapshots pretty pretty please

@mfisher87
Copy link
Member

Hooray! Anything is possible if one asks nicely 😆

Let's see if those integration tests pass...

@mfisher87 mfisher87 closed this Aug 28, 2025
@mfisher87 mfisher87 reopened this Aug 28, 2025
@mfisher87
Copy link
Member

Looks like we need one more go-around with the bot...

mapninja and others added 5 commits August 27, 2025 20:35
- Created new JGIS files: shapefile.jGIS, test.jGIS, and world.jGIS with various layers and sources.
- Added Jupyter notebooks for creating a new JGIS document, exploring data in a map, and opening existing JGIS projects.
- Implemented vector styling examples and added raster and GeoJSON layers to demonstrate usage of the JupyterGIS API.
- Enhanced documentation with markdown cells to provide context and instructions for users.
@mfisher87
Copy link
Member

bot please update snapshots again pretty please 🙇

@mfisher87 mfisher87 closed this Aug 28, 2025
@mfisher87 mfisher87 reopened this Aug 28, 2025
Copy link
Member

@arjxn-py arjxn-py left a comment

Choose a reason for hiding this comment

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

Neat!
Thanks @mapninja @mfisher87

@martinRenou
Copy link
Member

@mfisher87 I see you struggled with the bot 😬 Sorry! I don't know if this is what happened exactly, but the bot needs to run after the Build jupytergis workflow is done, the reasoning for this is that the bot looks for the build artifact (the built JupyterGIS package) and downloads it for the screenshots update workflow

@arjxn-py arjxn-py merged commit ccd5a60 into geojupyter:main Aug 28, 2025
13 checks passed
@mfisher87
Copy link
Member

the bot needs to run after the Build jupytergis workflow is done, the reasoning for this is that the bot looks for the build artifact (the built JupyterGIS package) and downloads it for the screenshots update workflow

Yeah, I figured this out the hard way! We could use some docs on this :)

@mfisher87
Copy link
Member

#911

@mapninja
Copy link
Contributor Author

Looks great. +1 on the decision to put the JGIS files back in /examples/. WIth the numbering on the ipynb files, it's not nearly as messy as I imagined. I'll work more on fleshing out the notebooks with supporting text, next week when I have time, if you think that is useful.

@mfisher87
Copy link
Member

mfisher87 commented Aug 28, 2025

@mapninja Absolutely useful! Thank you! And I think we could also use numbering on the .jGIS files if we want to interleave notebooks and jGIS project files in the examples. E.g. 01-etc.ipynb creates 02-etc.jGIS, 03-etc.ipynb updates 04-etc.jGIS. Or something -- not sure at the moment as mutation within the examples could be messy ;)

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants