I just got my nano setup and ran the same code segment as part of the Nvidia course (csi_camera.ipynb) and got the same error. The links provided by kayccc don’t seem to address the issue.
you could using GStreamer with the nvarguscamerasrc plugin to preview camera stream without implementation.
please refer to Camera Software Development Solution chapter, and check the commands to render the preview to HDMI display.
thanks