Ctrl + Enter, code continuously runs?

When I run my code, the “Run” button continuously runs. How can I get it to quit running after it has run a line of code?

Welcome to Ask! Your program will run until it does one of three things:

  1. Ends
  2. Crashes
  3. Sends a kill signal (such as exit() in Python)

If you wish to end your program prematurely, you can use Ctrl+C while in the Console or implement something in your code. Looking at your profile, you seem to be using Python, so I’d recommend using exit() in your code if you want to end it prematurely.

I wish it would just run a line (like R) and then stop running after it runs a piece of code.

1 Like

You can make that a Feature Requests.

Or in the case of Python, go to Shell, type python3, and that will run every line you type into it as soon as you hit enter.

1 Like

Thank you for your help. I think I am just stuck with the fact that the code continuously runs.

1 Like

Yup, unless you get Replit to make this into a feature.

use breakpoints