ipyleaflet
ipyleaflet copied to clipboard
Using ipyleaflet with Amazon SageMaker Studio Lab - Error displaying widget: model not found
CC @jweill-aws
Thanks for reporting this! I've informed the SageMaker Studio Lab team.
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
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?
@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.
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 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
@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.
@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?