ipyleaflet icon indicating copy to clipboard operation
ipyleaflet copied to clipboard

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

Open giswqs opened this issue 2 years ago • 23 comments

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

chrome_kcV1PStfHD

giswqs avatar Aug 02 '22 18:08 giswqs

CC @jweill-aws

jasongrout avatar Aug 20 '22 13:08 jasongrout

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

JasonWeill avatar Aug 20 '22 13:08 JasonWeill

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.

MicheleMonclova avatar Aug 22 '22 02:08 MicheleMonclova

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

giswqs avatar Aug 22 '22 02:08 giswqs

@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.

JasonWeill avatar Aug 22 '22 16:08 JasonWeill

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.

jasongrout avatar Aug 22 '22 17:08 jasongrout

@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

raybellwaves avatar Oct 19 '22 15:10 raybellwaves

@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.

jasongrout avatar Oct 19 '22 16:10 jasongrout

@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?

giswqs avatar Feb 07 '23 17:02 giswqs