settings -> "code-runner.ex" -> edit in settings.json -> ->replace "python": "python -u" with "python": "python3 -u"