Describe the bug
By deploying a notebook [Amazon Linux 2, Jupyter Lab 3 (notebook-al2-v2)] on Sagemaker, we want have the GraphWidget working on Jupyter Lab.
We are adding screenshots to showcase the problem. Restarting kernel does not change this behavior. We have also tried some setup on notebook start, no success.
To Reproduce
Check on screenshots.
Expected behavior
Have GraphWidget working on Sagemaker Jupyter Notebook.
Screenshots
Creating the instance and launching it
Notebook is fresh, we will create a new notebook file
Available plugin
Installed lib, and now it's on showing on labextension list
Full error
Desktop (please complete the following information):
- OS: MacOS
- Browser Chrome
- Version MacOS -> 14.4.1 / Chrome -> 124.0.6367.91
Additional context
We also have tried creating custom kernels, with many different library versionings, no success also. We had a similar problem on kubeflow, but since we were able to create the image that is going to be used, we have managed to find a good versioning to have it working there. Same versioning does not work on Sagemaker.
On kubeflow, we had this configuration for it to work, on Python 3.9.16:
RUN python3 -m pip uninstall -y \
traitlets
# Downgrading was necessary, found it somewhere when troubleshooting
RUN python3 -m pip install --no-cache-dir \
traitlets==5.9.0
# Libs related to Neo4j and Graph visualization
RUN python3 -m pip install --no-cache-dir \
ipywidgets==8.1.1 \
jupyterlab-widgets==3.0.9 \
yfiles_jupyter_graphs==1.4.8
EDIT:
Adding versioning of the Sagemaker notebook:
IPython : 8.22.2
ipykernel : 6.29.3
ipywidgets : 8.1.2
jupyter_client : 8.6.1
jupyter_core : 5.7.2
jupyter_server : 2.13.0
jupyterlab : 4.1.5
nbclient : 0.10.0
nbconvert : 7.16.3
nbformat : 5.10.3
notebook : 7.1.2
qtconsole : 5.4.4
traitlets : 5.14.2