Remote Development VSCode Jetson Nano "cannot open display"

I like to test my mostly python code via remote development on the Jetson Nano (2GB). The remote development works, i can compile, debug and use the terminal. I work via virtualenv.

Code:
import cv2
dispW=1280
dispH=720
flip=2

camSet=‘nvarguscamerasrc ! video/x-raw(memory:NVMM), width=3264, height=2464, format=NV12, framerate=21/1 ! nvvidconv flip-method=’+str(flip)+’ ! video/x-raw, width=‘+str(dispW)+’, height=‘+str(dispH)+’, format=BGRx ! videoconvert ! video/x-raw, format=BGR ! appsink’

cam= cv2.VideoCapture(camSet)

while True:
ret, frame = cam.read()
cv2.imshow(‘nanoCam’,frame)
if cv2.waitKey(1)==ord(‘q’):
break
cam.release()
cv2.destroyAllWindows()

When run this directly on the nano it works like a charm. Running it via ssh: and remote development from visualstudio code I get the error:

(python:13421): Gtk-WARNING **: 21:22:57.409: cannot open display:
CONSUMER: Done Success
(Argus) Error EndOfFile: Unexpected error in reading socket (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 266)

Have below command before launch camera.

export DISPLAY=:0