Skip to content

added simple tutorial to introduce the jupyterGIS GUI.#393

Merged
martinRenou merged 30 commits intogeojupyter:mainfrom
annefou:add-tutorial
Jan 31, 2025
Merged

added simple tutorial to introduce the jupyterGIS GUI.#393
martinRenou merged 30 commits intogeojupyter:mainfrom
annefou:add-tutorial

Conversation

@annefou
Copy link
Contributor

@annefou annefou commented Jan 27, 2025

Description

Resolves #313 e.g. added a simple tutorial to show how to use jupytergis with the GUI.

I added the tutorial (as discussed in #313) but I used markdown. Let me know if it is an issue. Also I noticed that some formatting do not work here (for instance {admonition}). Do you have any suggestions to fix these issues. Thanks!

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

@github-actions
Copy link
Contributor

Binder 👈 Launch a Binder on branch annefou/jupytergis/add-tutorial

@mfisher87 mfisher87 added the documentation Improvements or additions to documentation label Jan 27, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jan 27, 2025

Integration tests report: appsharing.space

@annefou
Copy link
Contributor Author

annefou commented Jan 28, 2025

Ok. I think I implemented all the requested changes and tried to fix all the checks but 2 are failing and I don't understand why.

Copy link
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.

LGTM!

Ok. I think I implemented all the requested changes and tried to fix all the checks but 2 are failing and I don't understand why.

The two failures are unrelated see #404 and #394

@mfisher87 would you like to give a look at this PR before we merge?

to make sure we have dropdown for exercise solutions
Copy link
Member

@mfisher87 mfisher87 left a comment

Choose a reason for hiding this comment

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

Awesome work! Hope you don't mind my large number of comments. Tutorials are really hard, thank you so much for taking this on! Feel free to ignore any nitpick you disagree with.


We will explore the JupyterGIS user interface to help you become familiar with its menus, toolbars, map canvas, and layers list, which make up the core structure of the interface.

**The objective of this lesson is to understand the fundamentals of the JupyterGIS user interface.**
Copy link
Member

Choose a reason for hiding this comment

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

Love this. Nitpick: Maybe we could use an admonition with the custom title "Lesson goal" instead of a bolded paragraph?


1. The application Launcher helps you to select which application you want to start e.g. a Notebook, a Console, and another application such as a Terminal or open a GIS file (which can be either a JupyterGIS file or a QGIS file).
2. GIS Layers List / Browser Panel
3. Left Sidebar which contains a file browser, a list of tabs in the main work and of running kernels and terminals, the command palette, the table of contents, the extension manager, and the JupyterGIS extension which allows you to see the GIS layers list.
Copy link
Member

Choose a reason for hiding this comment

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

This would require editing the image, so I apologize, but what about reversing the order of 2 and 3? 3 currently explains that the GIS layers list in 2 is enabled because of the selected tab in 3, and it feels like that information should be given first.

The order in which the layers have been loaded into the map is probably not logical at this stage. It’s possible that the road layer or/and the country layer are completely hidden because other layers are on top of it.

For example, this layer order:
![Wrong layer order](../assets/images/wrongLayerOrder.png)
Copy link
Member

Choose a reason for hiding this comment

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

I think we should only show layers in this screenshot, not sources. It's a bit confusing!

:label: Rename-layer
```

- Rename each **Custom Shapefile Layer** with a meaningful name e.g., **cb_2015_us_county_500k** for the US County Shapefile Layer and **nyc_roads** for the roads in New-York.
Copy link
Member

Choose a reason for hiding this comment

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

Layer names can have spaces in them, so I feel it would be valuable to write these as more human-readable names, like "NYC roads" and "US counties" instead of naming them after the input files. It might be useful to demonstrate renaming the sources to match the input file names!


Welcome to the first tutorial in the JupyterGIS series! This guide will introduce you to the basics of JupyterGIS and help you set up your environment, create your first map, and understand its key features.

## Objectives
Copy link
Member

Choose a reason for hiding this comment

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

annefou and others added 8 commits January 29, 2025 20:22
Co-authored-by: Matt Fisher <3608264+mfisher87@users.noreply.github.com>
Co-authored-by: Matt Fisher <3608264+mfisher87@users.noreply.github.com>
Co-authored-by: Matt Fisher <3608264+mfisher87@users.noreply.github.com>
Co-authored-by: Matt Fisher <3608264+mfisher87@users.noreply.github.com>
Co-authored-by: Matt Fisher <3608264+mfisher87@users.noreply.github.com>
Co-authored-by: Matt Fisher <3608264+mfisher87@users.noreply.github.com>
Co-authored-by: Matt Fisher <3608264+mfisher87@users.noreply.github.com>
Co-authored-by: Matt Fisher <3608264+mfisher87@users.noreply.github.com>
annefou and others added 6 commits January 29, 2025 20:35
Co-authored-by: Matt Fisher <3608264+mfisher87@users.noreply.github.com>
remove text from image but keep arrow
add arrow to image
JupyterGIS GUI with new numbering as requested
@annefou
Copy link
Contributor Author

annefou commented Jan 30, 2025

@mfisher87 Thanks for your detailed review. It is very helpful. I tried to implement all your suggestions, but please do not hesitate to provide any further feedback.

Copy link
Member

@mfisher87 mfisher87 left a comment

Choose a reason for hiding this comment

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

This looks so good! Amazing work, Anne!!!

:class: warning
Did you notice in the figures above that in the list of sources, the source for 'US Counties' appears before the source for 'OpenStreetMap.Mapmik'? In contrast, you can see the reverse order in the list of Layers.
The reason is that sources are ordered alphabetically, while layers are ordered based on the order in which they are added, with the top layer being the most recently added to your map.
:::
Copy link
Member

Choose a reason for hiding this comment

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

Nice callout!!!

annefou and others added 3 commits January 30, 2025 19:20
Co-authored-by: Matt Fisher <3608264+mfisher87@users.noreply.github.com>
@mfisher87
Copy link
Member

The integration test failure is not one I've seen before. Previously it was a snapshot difference, but now:

tests/export.spec.ts:70:7 › #export › should display warnings
 ──────────────────────────────────

Copy link
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.

Discarding visual regression tests for now. I believe the export test is not passing but it's definitely not this PR. Thanks a ton Anne!

@martinRenou martinRenou merged commit ceb02cc into geojupyter:main Jan 31, 2025
13 of 14 checks passed
@mfisher87
Copy link
Member

Awesome work, @annefou !!

@annefou annefou deleted the add-tutorial branch February 9, 2025 14:14
HaudinFlorence pushed a commit to HaudinFlorence/jupytergis that referenced this pull request Jan 28, 2026
* added simple tutorial

* ran pre-commit to fix issues

* jlpm run lint

* bug fix wrong quote was used.

Co-authored-by: martinRenou <martin.renou@gmail.com>

* fix colon_fence and add missing images

* fix typo

* add sphinx extension in environment-docs.yml

* fix typo in env for docs

* add sphinx extension in build.yml too

* add missing sphinx-togglebutton package
to make sure we have dropdown for exercise solutions

* Update docs/tutorials/intro.md

Co-authored-by: Matt Fisher <3608264+mfisher87@users.noreply.github.com>

* Update docs/tutorials/intro.md

Co-authored-by: Matt Fisher <3608264+mfisher87@users.noreply.github.com>

* Update docs/tutorials/intro.md

Co-authored-by: Matt Fisher <3608264+mfisher87@users.noreply.github.com>

* Update docs/tutorials/intro.md

Co-authored-by: Matt Fisher <3608264+mfisher87@users.noreply.github.com>

* Update docs/tutorials/intro.md

Co-authored-by: Matt Fisher <3608264+mfisher87@users.noreply.github.com>

* Update docs/tutorials/intro.md

Co-authored-by: Matt Fisher <3608264+mfisher87@users.noreply.github.com>

* Update docs/tutorials/intro.md

Co-authored-by: Matt Fisher <3608264+mfisher87@users.noreply.github.com>

* Update docs/tutorials/intro.md

Co-authored-by: Matt Fisher <3608264+mfisher87@users.noreply.github.com>

* Update docs/tutorials/intro.md

Co-authored-by: Matt Fisher <3608264+mfisher87@users.noreply.github.com>

* implement requested changes
remove text from image but keep arrow
add arrow to image
JupyterGIS GUI with new numbering as requested

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* introduce rename layers early in the tutorial

* introduce renaming of layers/sources early

* fix failure with jlpm run lint

* Update docs/tutorials/intro.md

Co-authored-by: Matt Fisher <3608264+mfisher87@users.noreply.github.com>

* add prerequisites at the top

---------

Co-authored-by: martinRenou <martin.renou@gmail.com>
Co-authored-by: Matt Fisher <3608264+mfisher87@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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.

Document some quick start examples using open datasets

4 participants