Jupyter laptop in pycharm does not display embedded graphics

Jupyter notepad in my PyCharm on Windows can display simple matplotlib graphics, but cannot display an image, for example, through. imshow. What is the best way to solve this problem? I reproduced this on two separate laptops with Windows 10 and Windows 8.

An example is here:

enter image description here

+6
source share
1 answer

I had a similar problem when trying to use Skimage on my Jupyter laptop on Windows. I decided to show my image using cv2 using a workaround.

import cv2

img = cv2.imread(C:/Users/src/photos/img.jpg)
plt.imshow(img)

Hope this is helpful. I am new to all of this.

0
source

Source: https://habr.com/ru/post/1662985/


All Articles