to make the python script running in vscode.dev, you need to initiate a jupyter server and leave it running there.
accroding to this article the best way to begin would be miniconda installation and get the kernel things from there.
so comes the steps herein below:
winget install miniconda3 --accept-package-agreements --source winget
to start a jupyter server you'll need to install nb_conda_kernels under conda, which would lead to a bunch of errors if you didn't do the prerequsites.