IDE console not working
Hi All,
the interactive console returns information based on typed commands, however the IDE doesnt execute what I've entered in.
IDE:
print("hello")
---Clicks run---
Interactive shell:
Nothing returned
Interactive shell:
print("hello")
(>) Hello
Could someone explain if I'm doing something incorrectly?
Can you provide the link to your repl?
Still not working
https://repl.it/@JiQoyNicholas/Pyabsolutebeginners
@Vandesm14
@JiQoyNicholas You'll need to either import and run the code (in main.py), paste it in a function, or just paste it into main.py since repl.it only runs that file on startup. As of now, there is no way to run specific files.
Did you try pressing the run button completely?
yes. this issue appears to be the main.py file.
I wasnt aware that only the main.py file gets executed. I read that I'll have to make my new code into a function, import that file and function, and it should work. If there's another way I'd love to hear it.
@theangryepicbanana
@JiQoyNicholas why don't you just make a new repl?
You need to put that code in the main.py that repl created, or call it from there.
The way they compile and run your code starts with the main.py file they create, you will need to call other files/functions from there, even if they have the same name.