Ask coding questions

← Back to all posts
How to make your python script run continuously even after closing the tab
millah (4)

How to make your python script run continuously even after closing the tab.

Answered by AphixDev (213) [earned 5 cycles]
View Answer
Comments
hotnewtop
AphixDev (213)

I'm sorry to say, this is impossible. The compiler can only run while it is open, so closing it will destroy the process. If you are talking about servers, your repl will wake up whenever a client connects.

Coolboy62ksi (0)

@AphixDevtheres ways of keeping a repl online you need the hacker plan to get that option tho i use it to run my discord bot

AadiYadav (0)

@Coolboy62ksi how do you do it with hacker plan. I have a hacker plan and it doesn't run when I close my window.

Coolboy62ksi (0)

@AadiYadav its because you need to do the steps 1 go to your repl and click on it 2 on the top of your screen click the name of your repl 3 you will see something saying always on if you click that it will run your repl even when you close your tab