Skip to content

Create the conda environment after downloading the extension artifacts #705

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 8 commits into
base: main
Choose a base branch
from

Conversation

jtpio
Copy link

@jtpio jtpio commented May 15, 2025

Description

To check if that fixes jupyterlite/jupyterlite#1644

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

Copy link
Contributor

Binder 👈 Launch a Binder on branch jtpio/jupytergis/patch-1

@arjxn-py arjxn-py added the bug Something isn't working label May 15, 2025
Copy link
Contributor

github-actions bot commented May 15, 2025

Integration tests report: appsharing.space

Comment on lines 277 to 281
cp ./jupytergis_core/dist/jupytergis*.whl jupytergis_core-0.0.1-py3-none-any.whl
cp ./jupytergis_lab/dist/jupytergis*.whl jupytergis_lab-0.0.1-py3-none-any.whl
cp ./jupytergis_qgis/dist/jupytergis*.whl jupytergis_qgis-0.0.1-py3-none-any.whl
cp ./jupytergis_lite/dist/jupytergis*.whl jupytergis_lite-0.0.1-py3-none-any.whl
cp ./jupytergis/dist/jupytergis*.whl jupytergis-0.0.1-py3-none-any.whl
Copy link
Collaborator

@trungleduc trungleduc May 15, 2025

Choose a reason for hiding this comment

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

We need these files so that jupytergis is installed in the kernel env (for the python API)

Copy link
Author

Choose a reason for hiding this comment

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

Yeah right.

Looks like this would need some cleanup at some point. Maybe it would then make sense to create a new lite/build-environment.yml file to list build dependencies and include these extensions.

cp ./jupytergis_qgis/dist/jupytergis*.whl jupytergis_qgis-0.0.1-py3-none-any.whl
cp ./jupytergis_lite/dist/jupytergis*.whl jupytergis_lite-0.0.1-py3-none-any.whl
cp ./jupytergis/dist/jupytergis*.whl jupytergis-0.0.1-py3-none-any.whl
pip install ./jupytergis_core/dist/jupytergis*.whl ./jupytergis_lab/dist/jupytergis*.whl ./jupytergis_qgis/dist/jupytergis*.whl ./jupytergis_lite/dist/jupytergis*.whl ./jupytergis/dist/jupytergis*.whl
Copy link
Author

Choose a reason for hiding this comment

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

Not sure if it makes sense to install them all in the lite environment, but it probably doesn't hurt.

Let's see if the CI passes at least.

@@ -279,6 +279,7 @@ jobs:
cp ./jupytergis_qgis/dist/jupytergis*.whl jupytergis_qgis-0.0.1-py3-none-any.whl
cp ./jupytergis_lite/dist/jupytergis*.whl jupytergis_lite-0.0.1-py3-none-any.whl
cp ./jupytergis/dist/jupytergis*.whl jupytergis-0.0.1-py3-none-any.whl
pip install ./jupytergis_core/dist/jupytergis*.whl ./jupytergis_lab/dist/jupytergis*.whl ./jupytergis_lite/dist/jupytergis*.whl ./jupytergis/dist/jupytergis*.whl
Copy link
Member

Choose a reason for hiding this comment

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

We're already handling the whls in the jupyterlite-xeus environment here: https://github.com/geojupyter/jupytergis/blob/main/lite/environment.yml#L18

I believe we should fix jupyterlite/xeus#227

Copy link
Member

Choose a reason for hiding this comment

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

Adding a note that we need to keep it that way so that the Python API of JupyterGIS is available in the emscripten environment.

Installing those wheels in the host environment will result in an unneeded (harmless but unneeded) duplication of labextensions, so I'd suggest not applying this change.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for opening this though! That made me realize the actual issue jupyterlite/xeus#227 which was fairly hard to understand 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot load settings from extension in JupyterLite (Unexpected end of input)
4 participants