I'm new to programming and I'm setting up setting up Visual Studio Code to start learning some Python. I've got the following setup:
Now I have some trouble understanding the way the Code Runner extension picks it's Python version. See the screenshot below.
Now I wonder: can Code Runner when running a piece of code also use the selected kernel (either when executing a piece of a.py file, or when executing a piece of a Jupyter notebook)?
Solution summary
Quick summary of the solution, because part of it is in a comment below. You need to configure the Executor Map of Code Runner as described below. Apart from that, Code Runner always uses the kernel selected in the Python extension, never the one from the Jupyter extension.
This should be related to the default Python interpreter used by code-runner, which you can change in setting.json.
You can refer to this page on github for more related information.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.