Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python version #5

Open
TaqiyEddine-B opened this issue Apr 8, 2021 · 2 comments
Open

Python version #5

TaqiyEddine-B opened this issue Apr 8, 2021 · 2 comments

Comments

@TaqiyEddine-B
Copy link

TaqiyEddine-B commented Apr 8, 2021

I'm using this extention with VS Code (1.55.0) to run some pythin codes inside md files. This is a simple python code :
image

Apparently, it uses python 2 when I click "Run"
image

I think that using "python" without specifying its version is more appropriate

@polyglotdev
Copy link

@TaqiyEddine-B I had the same issue and did a PR, but it appears that this is an abandoned project. The short term fix is to add an alias to your shell for with alias python2="python". At least on macOS I am fairly certain that it is using Python v3 now anyway so you don't run the risk of somehow polluting your system level Python. At least as of macOS 12.03 Monterey its not being shipped with Python v2.

python 2 is 💀, long live python 3

@mosuzi
Copy link

mosuzi commented Jun 6, 2023

@TaqiyEddine-B Checked the source code, I found that you may add such code below in VS Code setting.json to set python run as python3

"markdown-code-runner.executorMap": {
  "python": "python3 -u"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants