Search code examples
pythonpython-3.xjupyter-notebookruntime-erroripython

How can I solve this problem in vs code (ipynb)?


import os 

image, label = load(os.path.join(PATH, 'train/cat/cat.100.jpg'), 0)
# casting to int for matplotlib to show the image
plt.figure()
plt.title(label)
plt.imshow(image/255.0)
plt.show()

When I run this, there is no error. But it shows as indefinitely in progress. enter image description here


Solution

  • try this,

    PATH = "/Users/reblochonMasque/Documents/Drawings/"
    Image(filename = PATH + "My_picture.jpg", width=100, height=100)