Skip to content

Make the repository "notebook.link ready"#1281

Merged
giswqs merged 4 commits into
opengeos:masterfrom
martinRenou:nblink
Jan 23, 2026
Merged

Make the repository "notebook.link ready"#1281
giswqs merged 4 commits into
opengeos:masterfrom
martinRenou:nblink

Conversation

@martinRenou

@martinRenou martinRenou commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

This will allow people to open leafmap example notebooks live in https://notebook.link/github/opengeos/leafmap/tree/master/lab/ with a working environment and leafmap already installed.

@giswqs I'm happy to make any change to the environment.yml file if you think there are too many packages or missing ones.

Copilot AI review requested due to automatic review settings January 23, 2026 08:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for notebook.link to enable users to open leafmap example notebooks live in a browser-based JupyterLite environment with all dependencies pre-installed.

Changes:

  • Added notebook.link badge to README.md
  • Created .nblink/environment.yml defining the conda environment with leafmap and its dependencies for the emscripten-wasm32 platform
  • Created .nblink/nblink-lock.json lock file containing resolved package specifications for reproducible environments

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
README.md Added notebook.link badge for easy access to live notebooks
.nblink/environment.yml Defines conda environment with xeus-python kernel and leafmap dependencies
.nblink/nblink-lock.json Lock file with resolved package versions for the emscripten-wasm32 platform

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md Outdated

[![image](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/opengeos/leafmap/blob/master/examples/notebooks/00_key_features.ipynb)
[![image](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/opengeos/leafmap/blob/master)
[![notebook-link](https://img.shields.io/badge/notebook-link-e2d610?logo=jupyter&logoColor=white)](https://notebook.link/github/opengeos/leafmap/tree/master/lab/)

Copilot AI Jan 23, 2026

Copy link

Choose a reason for hiding this comment

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

The badge URL points to /tree/master/lab/ but there doesn't appear to be a lab directory in the repository. According to the PR description, this is meant to allow people to open leafmap example notebooks from https://notebook.link/github/opengeos/leafmap/tree/master/lab/.

However, based on the repository structure, notebooks are located in examples/notebooks/ or docs/notebooks/, not in a lab/ directory. The URL should likely point to one of these existing directories, such as:

  • https://notebook.link/github/opengeos/leafmap/tree/master/examples/
  • https://notebook.link/github/opengeos/leafmap/tree/master/docs/notebooks/

Please verify that the URL is correct and points to an existing directory containing the notebooks, or ensure that the lab/ directory is created in this PR if that's the intended structure.

Suggested change
[![notebook-link](https://img.shields.io/badge/notebook-link-e2d610?logo=jupyter&logoColor=white)](https://notebook.link/github/opengeos/leafmap/tree/master/lab/)
[![notebook-link](https://img.shields.io/badge/notebook-link-e2d610?logo=jupyter&logoColor=white)](https://notebook.link/github/opengeos/leafmap/tree/master/examples/notebooks/)

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Indeed let's point to the example notebooks directory. But the suggested change by copilot is wrong.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done in a9c9c2f

@giswqs giswqs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Awesome! Thank you very much for this.

@giswqs giswqs merged commit cf92c4e into opengeos:master Jan 23, 2026
14 of 15 checks passed
@martinRenou martinRenou deleted the nblink branch January 23, 2026 12:21
giswqs pushed a commit that referenced this pull request Jan 27, 2026
* Make the repository nblink-ready

* Update

* Add README badge

* Point to the first Notebook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants