Hello, I’m trying to make an interactive menu in python console. I found python-inquirer should be good for my purpose, but it doesn’t work in PyCharm when I run it, it just prints out the options and I can’t choose anything. Does anyone know what my problem is and how to solve it? I’m really happy for any help.
JavaScript
x
14
14
1
from pprint import pprint
2
import inquirer
3
4
questions = [
5
inquirer.List(
6
"size",
7
message="What size do you need?",
8
choices=["Jumbo", "Large", "Standard", "Medium", "Small", "Micro"],
9
),
10
]
11
12
answers = inquirer.prompt(questions)
13
pprint(answers)
14
The code is just copy-pasted from python inquirer documentation There are no errors when I run it, it just doesn’t work
Advertisement
Answer
In Run/Debug Configuration of your Pycharm project tick “Emulate terminal in output console”
Then you can use also pycharm debug features