How can I use plt.imshow in colab?

enter image description here

%matplotlib inline
import numpy as np
import cv2
import matplotlib
from matplotlib import pyplot as plt
import time
start = time.time()

A = cv2.imread(r'C:\Users\jhjoo\Desktop\a.jpg',0)
plt.imshow(A, cmap='gray')

enter image description here

enter image description here

The above is the output of the colab, and below is the code for the jupyter notebook.

The same code doesn't work in colab.

I want to use colab because my computer is not good, but I can't use it because the basic one doesn't work.

Please help me.

Attach an image file.