Ask coding questions

← Back to all posts
Hard stop a REPL
SPQR

Is there a way to manually stop a repl non-programatically, through the shell perhaps? I have an issue where my program finishes executing but X stays open and the run/stop button still says stop, but clicking it incessantly doesn't do anything. I've been manually starting my repl thru the shell every time, but this is a bit of a pain.

Voters
AhmadYasin2
aliang330
mrwnphs
programmeruser
JennaCantrell
Highwayman
a_siebel
LD1
emilienBUSSON
ETHANSIAO
Comments
hotnewtop
theangryepicbanana

I second this

ETHANSIAO

Hi, I've also been having this issue. Really hoping someone comes up with an answer. I'll let you know if I discover anything.

emotionbot

You can use sys.exit() in python to exit the system.