Skip to content
← Back to Community
Interactive Console?
Profile icon
h
has Hacker Plan
TheWeebMonkey

Hello, I'm currently learning to make AI in python and I am wondering if you can make an Interactive Console in python. I am pretty sure you can't but I want to double check

Answered by JBloves27 [earned 5 cycles]
View Answer
Voters
Profile icon
TheWeebMonkey
Comments
hotnewtop
Profile icon
InvisibleOne

what do you mean by interactive console?

Profile icon
TheWeebMonkey

@InvisibleOne Where you can click the options you want. So lets say you have different options like "1. mine 2. save" and you want to mine then you would click mine instead of having to enter which one you want.

Profile icon
JBloves27

This is not possible unless you;

  1. Enter using getkey or an input
  2. Use flask or a web framework like django.

Otherwise, this probably isn't possible. @TheWeebMonkey

Profile icon
TheDNAHero

Solution. Switch to javascript. @JBloves27

Profile icon
TheWeebMonkey

@JBloves27 ok thanks

Profile icon
JBloves27

Ehh, but you would still have to use a web framework. It's pretty much impossible using only the console and making it interactive. @TheDNAHero

Profile icon
JBloves27

No problem! Glad I helped! @TheWeebMonkey

Profile icon
TheDNAHero

Well yes but you don't need that much @JBloves27

Profile icon
InvisibleOne

That's possible with some python graphical libraries but not really in the console which is true for almost any language. @TheWeebMonkey

Profile icon
JBloves27

True. I'm just pointing out that it's only possible with a web framework. @TheDNAHero

Profile icon
InvisibleOne

Or a graphical interface @JBloves27. Stuff like pygame can register mouse clicks and it isn't a web framework.

Profile icon
JBloves27

Ah, yep, that's the word I was looking for. @InvisibleOne

Profile icon
kala9790kala979

relatable