Python on Sublime Repl for Sublime text: different versions
Описание
How to use different versions of Python on sublime text with the plugin Sublime Repl : check the post on https://pythonprogramming.altervista.org/how-to-use-different-python-versions-in-sublime-repl-for-sublime-text-3/
This is what you need to copy into the Default sublime-keymap file as shown in the video
[
{"keys": ["ctrl+alt+p"], "command": "repl_open",
"caption": "SublimeRepl",
"id": "SublimeRepl",
"mnemonic": "R",
"args": {
"type": "subprocess",
"encoding": "utf8",
"cmd": ["C:/Users/giova/AppData/Local/Programs/Python/Python37/python.exe", "-u", "-i", "$file_basename"],
"cwd": "$file_path",
"syntax": "Packages/Python/Python.tmLanguage",
"external_id": "python",
"extend_env": {"PYTHONIOENCODING": "utf-8"}
}},
{"keys": ["ctrl+b"], "command": "repl_open",
"caption": "SublimeRepl",
"id": "SublimeRepl",
"mnemonic": "R",
"args": {
"type": "subprocess",
"encoding": "utf8",
"cmd": ["C:/Users/giova/AppData/Local/Programs/Python/Python38/python.exe", "-u", "-i", "$file_basename"],
"cwd": "$file_path",
"syntax": "Packages/Python/Python.tmLanguage",
"external_id": "python",
"extend_env": {"PYTHONIOENCODING": "utf-8"}
}},
{"keys": ["ctrl+alt+b"], "command": "repl_open",
"caption": "SublimeRepl",
"id": "SublimeRepl",
"mnemonic": "R",
"args": {
"type": "subprocess",
"encoding": "utf8",
"cmd": ["C:/Users/giova/AppData/Local/Programs/Python/Python39/python.exe", "-u", "-i", "$file_basename"],
"cwd": "$file_path",
"syntax": "Packages/Python/Python.tmLanguage",
"external_id": "python",
"extend_env": {"PYTHONIOENCODING": "utf-8"}
}}
]
Рекомендуемые видео



















