A
A
Altime2020-03-14 20:45:24
Python
Altime, 2020-03-14 20:45:24

What to do if input doesn't work in Sublime Text 3 (Python 3)?

Input does not work in Sublime Text 3 on Python 3. Here is an example of a light program:5e6d1820dc6cb998304702.png

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Pushkin, 2020-11-15
@Evroremontnik

Options---> Hotkeys. And write the code there:
{ "keys": ["ctrl+b"], "command": "repl_open",
"caption": "Python - RUN current file",
"id": "repl_python_run",
"mnemonic": "d",
"args": {
"type": "subprocess",
"encoding": "utf8",
"cmd": ["python", "-i", "-u", "$file_basename"],
"cwd": "$file_path",
"syntax": "

S
Sergey Karbivnichy, 2020-03-14
@hottabxp

How to run Python-a code in Sublime Text 3?

N
Nicholas V, 2020-03-16
@Amunrah

The sublime, as far as I know, has such a jamb - the built-in builder does not know how to work interactively. The bottom panel only displays the output, but does not send the input back to the executable code. Therefore, the running program will stupidly hang in the background waiting for data... It seems that there are solutions, but it is better to use third-party packages, such as SublimeREPL or Terminus (which, by the way, is much more convenient - it adds a full-fledged command terminal to the sublime, but you need to delve into it to set it up)
5e6f2e90897b6790097579.png

V
Vladislav the Wise, 2020-03-14
@yungtitanium

And what is actually wrong? Is the console throwing an error?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question