Skip to content
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

Atoti jupyterlab widgets aren't saving properly. Widgets are unable to be previewed on GitHub #885

Open
andrewyang94 opened this issue May 14, 2024 · 1 comment
Labels
🐛 bug unexpected or wrong behavior 💄 ui related to the app or the JupyterLab extension

Comments

@andrewyang94
Copy link
Contributor

andrewyang94 commented May 14, 2024

I'm unable to preview Atoti widgets on GitHub after pushing to my repo when running atoti version 0.8.12.

Steps to reproduce

If you restart the kernel and run all cells for any Atoti notebook, the resulting notebook does not save the Atoti widgets properly. For example, you can see differences when viewing a notebook in "raw" format:

image

Performing a corresponding git add, git commit, and git push also shows that the notebook widgets are blank when previewed in GitHub.

Actual Result

Notebooks have blank Atoti widgets after saving them and pushing them to GitHub.

Expected Result

I would expect that when I use atoti for a notebook, my widgets are properly saved and renderable when viewed on GitHub.

Environment

  • atoti: 0.8.12
  • Operating System: macOS 14.3.1
  • Browser: Version 124.0.6367.201 (Official Build) (arm64)
@andrewyang94 andrewyang94 added 🐛 bug unexpected or wrong behavior 💄 ui related to the app or the JupyterLab extension labels May 14, 2024
@andrewyang94 andrewyang94 changed the title Atoti widgets aren't saving properly in JupyterLab 4.2. Widgets are unable to be previewed on GitHub Atoti widgets aren't saving properly. Widgets are unable to be previewed on GitHub May 14, 2024
@andrewyang94
Copy link
Contributor Author

andrewyang94 commented May 14, 2024

Did a bit of digging and it seems like downgrading my JupyterLab to 4.1.8 seems to have done the trick. Please see the following code snippets.

However, when downloading the atoti-jupyterlab extension, it seems to download JupyterLab 4.2. by default, which is causing the aforementioned issue with rendered widgets.

(atoti) aya@aya atoti-0.8.12 % poetry run jupyter labextension list --verbose
...
JupyterLab v4.2.0
/Users/aya/anaconda3/envs/atoti/share/jupyter/labextensions
        jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)
        @jupyter-widgets/jupyterlab-manager v5.0.10 enabled OK (python, jupyterlab_widgets)
        @atoti/jupyterlab-extension v0.0.0 enabled  X


   The following extensions may be outdated or specify dependencies that are incompatible with the current version of jupyterlab:
        @atoti/jupyterlab-extension
        
   If you are a user, check if an update is available for these packages.
   See below for the details.


"@atoti/jupyterlab-extension@0.0.0" is not compatible with the current JupyterLab
Conflicting Dependencies:
JupyterLab    Extension      Package
>=2.0.1 <3.0.0>=1.0.2 <2.0.0 @jupyter/ydoc

vs.

(atoti) aya@aya atoti-0.8.12 % poetry run jupyter labextension list
...
JupyterLab v4.1.8
/Users/aya/anaconda3/envs/atoti/share/jupyter/labextensions
        jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)
        @jupyter-widgets/jupyterlab-manager v5.0.10 enabled OK (python, jupyterlab_widgets)
        @atoti/jupyterlab-extension v0.0.0 enabled OK

@andrewyang94 andrewyang94 changed the title Atoti widgets aren't saving properly. Widgets are unable to be previewed on GitHub Atoti jupyterlab widgets aren't saving properly. Widgets are unable to be previewed on GitHub Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug unexpected or wrong behavior 💄 ui related to the app or the JupyterLab extension
Projects
None yet
Development

No branches or pull requests

1 participant