Error displaying widget: model not found

When I use jupyter to run code: slicernb. ViewInteractiveWidget(),Widget failed to load and reported an error
Error displaying widget: model not found
and 3d slicer shows error

[I 2023-05-28 16:55:56.680 ServerApp] Connecting to kernel 24772f77-eeac-4d90-a1e0-75d06a4edda1.
ERROR: received bad message: No such comm target registered: jupyter.widget.control
Message type: comm_open
ERROR: received bad message: No such comm registered: 14c86747-6042-41dd-9429-b199dfe5a98a
Message type: comm_msg

What Slicer version are you using? On what operating system?

5.2.2
Windows
and It’s normal when my ipykernel is Python 3

Try disable anti-virus programs if u have any. Control environmental path and check python path. Maybe your jupyter libraries were not installed on your path same as comm targets of Slicer. If u had not added slicer/bin file path to environments please do and try.
Keep us informed.
Good Luck

Hello,
I just encountered the same problem. How did you resolve this problem?
Thanks, Juergen

I’m encountering the same problem. This happens when run the “01_Data_loading_and_display.ipynb” - " Dynamic views". Adding slicer/bin file path to environments doesn’t solve the problem. I’m using windows and slicer 5.2.2

Hello, just trying to follow up. Any suggestions?