# No outputs from view(image) of itkwidgets

**URL:** <https://discourse.itk.org/t/no-outputs-from-view-image-of-itkwidgets/3657>\
**Category:** Beginner Questions\
**Created:** [November 26, 2020, 10:42am UTC](https://discourse.itk.org/t/no-outputs-from-view-image-of-itkwidgets/3657 "2020-11-26T10:42:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Satya](https://discourse.itk.org/user_avatar/discourse.itk.org/satya/32/1801_2.png) [@Satya](https://discourse.itk.org/u/Satya)\
**Post date:** [November 26, 2020, 10:42am UTC](https://discourse.itk.org/t/no-outputs-from-view-image-of-itkwidgets/3657/1 "2020-11-26T10:42:43Z")

</div>

When I run the following lines from the jupyter notebook provided as examples on github in my system, I fail to get any outputs :  
image = itk.imread(file\_name)  
view(image)  
I have checked everything from the package versions being used and their import in jupyter which works fine. Any help would be very much appreciated.  
Thank You.

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [November 26, 2020, 4:56pm UTC](https://discourse.itk.org/t/no-outputs-from-view-image-of-itkwidgets/3657/2 "2020-11-26T16:56:18Z")

</div>

> [@Satya](#):
>
> view(image)

This creates a viewer inside the notebook. If you are running it outside of notebook (in regular python interpeter?) I am not surprised there is no effect. If you are running it inside the notebook, can you provide screenshot after running the cell?

---

<div class="post-metadata">

**Author:** ![Satya](https://discourse.itk.org/user_avatar/discourse.itk.org/satya/32/1801_2.png) [@Satya](https://discourse.itk.org/u/Satya)\
**Post date:** [November 27, 2020, 4:25am UTC](https://discourse.itk.org/t/no-outputs-from-view-image-of-itkwidgets/3657/3 "2020-11-27T04:25:31Z")

</div>

![Screenshot (7)](https://discourse.itk.org/uploads/default/original/2X/e/e88935274c0410b609ba0f3a9b6d9c31fb70bed2.png)  
All the cells run correctly without any error but there is no output from the last cell.  
Thanks !

---

<div class="post-metadata">

**Author:** ![Satya](https://discourse.itk.org/user_avatar/discourse.itk.org/satya/32/1801_2.png) [@Satya](https://discourse.itk.org/u/Satya)\
**Post date:** [November 27, 2020, 12:06pm UTC](https://discourse.itk.org/t/no-outputs-from-view-image-of-itkwidgets/3657/4 "2020-11-27T12:06:06Z")

</div>

![Screenshot 2020-11-27 172755](https://discourse.itk.org/uploads/default/original/2X/7/799d4469cd42030487481e84496d900c162304f9.png)  
I get the following output upon printing the view() command, but not getting the visualization.  
Thank You for the reply.

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [November 27, 2020, 3:07pm UTC](https://discourse.itk.org/t/no-outputs-from-view-image-of-itkwidgets/3657/5 "2020-11-27T15:07:01Z")

</div>

You should double check that everything is installed correctly. This is how downloading and running [2DImage.ipynb](https://github.com/InsightSoftwareConsortium/itkwidgets/blob/master/examples/2DImage.ipynb) looks like for me:

 ![Screenshot 2020-11-27 10.04.17](https://discourse.itk.org/uploads/default/original/2X/c/cbc34d7e78d512957aa5a0f8658e04b8680f8111.png)

---

<div class="post-metadata">

**Author:** ![Satya](https://discourse.itk.org/user_avatar/discourse.itk.org/satya/32/1801_2.png) [@Satya](https://discourse.itk.org/u/Satya)\
**Post date:** [November 28, 2020, 1:09am UTC](https://discourse.itk.org/t/no-outputs-from-view-image-of-itkwidgets/3657/6 "2020-11-28T01:09:30Z")

</div>

It worked in my base conda environment, but I cannot understand why it won’t run in other virtual environments which I fully cloned from the base environment.  
Thank You  
Satyajit Maurya
