Example Jupyter notebook not compatible with slicer 5.6

Hello,
I started to learn how to use slicer from Jupyter. I’ve used the example notebook provided here GitHub - Slicer/SlicerNotebooks: Examples that illustrate how to use 3D Slicer via Jupyter notebooks in Python

However, some cells don’t work on my installation. For example, in the notebook 1.
image
I also get this error


AttributeError Traceback (most recent call last)
File ~\AppData\Local\slicer.org\Slicer 5.6.0\lib\Python\Lib\site-packages\ipywidgets\widgets\interaction.py:240, in interactive.update(self, *args)
238 value = widget.get_interact_value()
239 self.kwargs[widget._kwarg] = value
→ 240 self.result = self.f(**self.kwargs)
241 show_inline_matplotlib_plots()
242 if self.auto_display and self.result is not None:

Cell In[7], line 15, in update(roll, pitch, yaw, cropx, cropy, cropz)
11 @interact(roll=(-90.0,90.0,5), pitch=(-90.0,90.0,5), yaw=(-180.0,180.0,5), cropx=(0,140,5), cropy=(0,240,5), cropz=(0,160,5))
12 def update(roll=0, pitch=-10, yaw=30, cropx=140, cropy=240, cropz=160):
13 #roiNode.SetRadiusXYZ([cropx, cropy, cropz])
14 roiNode.SetSizeWorld([cropx, cropy, cropz])
—> 15 return slicernb.View3DDisplay(0, orientation=[roll, pitch, yaw])

File ~\AppData\Local\slicer.org\Slicer 5.6.0\slicer.org\Extensions-32390\SlicerJupyter\lib\Slicer-5.6\qt-scripted-modules\JupyterNotebooksLib\display.py:218, in View3DDisplay.init(self, viewID, orientation)
216 view = widget.threeDView()
217 if orientation is not None:
→ 218 camera = view.interactorStyle().GetCameraNode().GetCamera()
219 cameraToWorld = vtk.vtkTransform()
220 cameraToWorld.RotateX(90)

AttributeError: ‘vtkmodules.vtkRenderingCore.vtkInteractorStyle3D’ object has no attribute ‘GetCameraNode’

The notebook 3 runs smoothly.
I think it’s a version compatibility version because I couldn’t find anny other difference with the online version (that runs without error on slicer 5.0)

After some additionnal research, I think that the issue might come from my ipywidget that’s not enabled when I select slicer as a kernel in my notebook

I found this topic from several years ago but I have the same as just_zzzzzz