# Error displaying widget: model not found

**URL:** <https://discourse.slicer.org/t/error-displaying-widget-model-not-found/29696>\
**Category:** Support\
**Tags:** jupyter\
**Created:** [May 28, 2023, 12:06pm UTC](https://discourse.slicer.org/t/error-displaying-widget-model-not-found/29696 "2023-05-28T12:06:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![morning\_jade](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/morning_jade/32/66151_2.png) [@morning\_jade](https://discourse.slicer.org/u/morning_jade)\
**Post date:** [May 28, 2023, 12:06pm UTC](https://discourse.slicer.org/t/error-displaying-widget-model-not-found/29696/1 "2023-05-28T12:06:49Z")

</div>

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

```auto
[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

```

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [May 29, 2023, 2:10am UTC](https://discourse.slicer.org/t/error-displaying-widget-model-not-found/29696/2 "2023-05-29T02:10:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![morning\_jade](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/morning_jade/32/66151_2.png) [@morning\_jade](https://discourse.slicer.org/u/morning_jade)\
**Post date:** [May 29, 2023, 7:32am UTC](https://discourse.slicer.org/t/error-displaying-widget-model-not-found/29696/3 "2023-05-29T07:32:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ATAKAN\_Isik](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/atakan_isik/32/65977_2.png) [@ATAKAN\_Isik](https://discourse.slicer.org/u/ATAKAN_Isik)\
**Post date:** [May 29, 2023, 4:50pm UTC](https://discourse.slicer.org/t/error-displaying-widget-model-not-found/29696/4 "2023-05-29T16:50:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Juergen](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/juergen/32/66870_2.png) [@Juergen](https://discourse.slicer.org/u/Juergen)\
**Post date:** [July 18, 2023, 8:18pm UTC](https://discourse.slicer.org/t/error-displaying-widget-model-not-found/29696/5 "2023-07-18T20:18:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![just\_zzzzzz](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@just\_zzzzzz](https://discourse.slicer.org/u/just_zzzzzz)\
**Post date:** [August 1, 2023, 8:59pm UTC](https://discourse.slicer.org/t/error-displaying-widget-model-not-found/29696/6 "2023-08-01T20:59:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Juergen](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/juergen/32/66870_2.png) [@Juergen](https://discourse.slicer.org/u/Juergen)\
**Post date:** [September 12, 2023, 11:35pm UTC](https://discourse.slicer.org/t/error-displaying-widget-model-not-found/29696/7 "2023-09-12T23:35:04Z")

</div>

Hello, just trying to follow up. Any suggestions?
