0

I am running a python interpreter through emacs. I often find myself running python scripts and wishing I could terminate them without killing the entire buffer. That is because I do not want to import libraries all over again...

Is there a way to tell python to stop executing a script and give me a prompt?

1 Answer 1

3

Try using keyboard interrupt which comint send to the interpreter through C-cC-c.

I generally hold down the C-c until it the prompt returns.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.