Can i use cv2.imshow() in jetcam's callback?

can i use cv2.imshow() in callback?
like that,

camera.running = True

def callback(change):
new_image = change[‘new’]
cv2.imshow(‘res’,new_image)

do some processing…

camera.observe(callback, names=‘value’)

hi beholder1:
if you want show in callback, I think you should add code like below, but for callback ,actually it just do some special process for image then return. so It better show it after callback.

kk = cv2.waitKey(1)
    if kk == ord('q'):  # exit with key q
        break

thanks