This is ridiculous but create a new .ipynb or .py file and try to connect it again. I used the pythonw.exe and it worked vs python.exe.