Enable Python API in the JupyterLite deployment#412
Enable Python API in the JupyterLite deployment#412martinRenou merged 21 commits intogeojupyter:mainfrom
Conversation
|
Integration tests report: appsharing.space |
|
Is this change enabled by an enhancement to JupyterLite? Could you please add some context links? 🙇 |
|
David is looking into making the Python API work in JupyterLite 🚀 Making good progress this week! You can give it a try here https://davidbrochart.github.io/jupytergis-demo (note not everything is working yet) It is built from https://github.com/davidbrochart/jupytergis-demo Once we have something stable, we should update our JupyterLite deployment with what David has there. Probably as part of this PR here? |
|
Yes, there are other changes that will make |
742b70e to
b303f02
Compare
747616f to
34006b2
Compare
martinRenou
left a comment
There was a problem hiding this comment.
Thanks!! I have some suggestions
|
Thanks @martinRenou. |
|
Oh I see: |
|
Now the error is: |
7dc7400 to
16614e5
Compare
|
Rebased from the UI |
16614e5 to
8181441
Compare
|
I just pushed two new commits (+ the linter one)
This works only with QuantStack/yjs-widgets#22 Case 1: Open an existing file (path is relative to the current context aka Notebook)Uploading Screencast From 2025-02-06 18-25-05.mp4… Upload doesn't work, but hey it's working Case 2: Open a non-existing file, we create it (path is relative to the current context aka Notebook)Screencast.From.2025-02-06.18-21-38.mp4Case 3: Open without passing a file path, we don't create anythingScreencast.From.2025-02-06.18-24-32.mp4 |
8181441 to
7dd2bf9
Compare
martinRenou
left a comment
There was a problem hiding this comment.
Looks like we're hitting flaky visual regression test, let's go ahead with this!!
Thanks David
| IJupyterYWidget, | ||
| IJupyterYWidgetManager, | ||
| JupyterYDoc, | ||
| // JupyterYDoc, |
There was a problem hiding this comment.
| // JupyterYDoc, |
|
Awesome to see! Thanks for this great work. |
Unclear why removed in geojupyter#412
* Error on doc build warnings * Add missing maxdepth parameter value * Restore docs build steps which installed jupytergis wheels Unclear why removed in #412 * Remove pip install from build_packages.py Setting up the environment should probably be decoupled from the build helper script. * Try build _then_ build:packages This actually worked locally 🙏 * Fix type annotation errors * Fix docutils warning ``` /home/docs/micromamba/envs/jupytergis-docs/lib/python3.12/site-packages/jupytergis_lab/notebook/gis_document.py:docstring of jupytergis_lab.notebook.gis_document.GISDocument:5: WARNING: Field list ends without a blank line; unexpected unindent. [docutils] ``` * Remove undefined `_type_` type * Fix some broken type documentation * Bugfix: Remove mutable default arguments
* Don't change paths to absolute backend paths * Enable jupytergis_lab in WASM platform * Make the model collaborative in JupyterLite * Deploy JupyterLite with collaborative drive * Review * Pin python=3.12 Co-authored-by: martinRenou <martin.renou@gmail.com> * Pin micromamba v2.0.5 * Install myst-parser from conda * Fix typo * Fix paths * Show error message in the front-end when there is no collaborative drive * Linter * Handle file operations in the front-end * Up * Update yjs widgets * Remove unwanted test * Cleanup * Remove Github pages build * Show console as early as possible * More docs building removal * Unpin my-jupyter-shared-drive --------- Co-authored-by: martinRenou <martin.renou@gmail.com>
* Error on doc build warnings * Add missing maxdepth parameter value * Restore docs build steps which installed jupytergis wheels Unclear why removed in geojupyter#412 * Remove pip install from build_packages.py Setting up the environment should probably be decoupled from the build helper script. * Try build _then_ build:packages This actually worked locally 🙏 * Fix type annotation errors * Fix docutils warning ``` /home/docs/micromamba/envs/jupytergis-docs/lib/python3.12/site-packages/jupytergis_lab/notebook/gis_document.py:docstring of jupytergis_lab.notebook.gis_document.GISDocument:5: WARNING: Field list ends without a blank line; unexpected unindent. [docutils] ``` * Remove undefined `_type_` type * Fix some broken type documentation * Bugfix: Remove mutable default arguments
Description
Fix #369
Fix #342
Checklist
Resolves #XXX.Failing lint checks can be resolved with:
pre-commit run --all-filesjlpm run lint📚 Documentation preview: https://jupytergis--412.org.readthedocs.build/en/412/
💡 JupyterLite preview: https://jupytergis--412.org.readthedocs.build/en/412/lite