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

Using ipyleaflet with Amazon SageMaker Studio Lab - Error displaying widget: model not found #1034

Open
giswqs opened this issue Aug 2, 2022 · 9 comments

Comments

@giswqs
Copy link
Contributor

giswqs commented Aug 2, 2022

Has anyone ever used ipyleaflet with Amazon SageMaker Studio Lab? I can't get it to work.

chrome_kcV1PStfHD

@jasongrout
Copy link
Member

CC @jweill-aws

@JasonWeill
Copy link

Thanks for reporting this! I've informed the SageMaker Studio Lab team.

@MicheleMonclova
Copy link

Hi- try installing with a % instead of a !. See Studio Lab FAQ below.

Q: How can I install open-source Python packages?

To install Python packages, you can use ‘%pip install ’ or ‘%conda install ’ in any notebook. Please make sure to use this form (with ‘%’) instead of ‘!pip’ and ‘!conda.’ Using the ‘%’ ensures you are installing the packages in the correct path.

@giswqs
Copy link
Contributor Author

giswqs commented Aug 22, 2022

I just uninstalled ipyeaflet and reinstalled using %conda install ipyleaflet -c conda-forge -y. Restarted the kernel and still got the same error. Is there a way to do a factory reset of my account so that I can start from scratch to install ipyleaflet?

image

@JasonWeill
Copy link

@giswqs There is no "reset" button in Studio Lab just yet. If you would like to reset your account, you can delete your account and register again. You will not have to wait for another approval as long as you use the same information when you register again.

@jasongrout
Copy link
Member

I just uninstalled ipyeaflet and reinstalled using %conda install ipyleaflet -c conda-forge -y. Restarted the kernel and still got the same error. Is there a way to do a factory reset of my account so that I can start from scratch to install ipyleaflet?

I'll just point out that your labextension list indicates it installed ipywidgets 8, and ipyleaflet is not yet compatible with ipywidgets 8. That may be why it had an error displaying. We're working on ipywidgets 8 compatibility over in #968, and it should be coming soon.

@raybellwaves
Copy link

raybellwaves commented Oct 19, 2022

@jasongrout where did you see ipywidgets 8? I only see from https://user-images.githubusercontent.com/5016453/185829006-bc1d5b25-03ad-4b32-8270-4a063547b9d1.png:

JupyterLab v3.2.4
/home/.../labextensions
ipytree v0.2.1
ipyevents v1.9.0
bqplot v0.5.32
jupyterlab-plotly v5.9.0
jupyterlab_pygments v0.2.2
jupyter-leaflet v0.17.0
@jupyter-widgets/jupyterlab-manager v5.0.2
@here/map-widget-for-jupyter v1.1.3

@jasongrout
Copy link
Member

@jupyter-widgets/jupyterlab-manager v5.0.2

This is the version of the widgets manager that comes with ipywidgets 8.

FYI, ipyleaflet now supports ipywidgets 8.

@giswqs
Copy link
Contributor Author

giswqs commented Feb 7, 2023

@MicheleMonclova @JasonWeill I tested ipyleaflet on three SageMaker platforms, including SageMaker, SageMaker EC2 notebook instance, and SageMaker Studio Lab. Unfortunately, none of them work. Any advice?

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

No branches or pull requests

5 participants