Rbruce
Rbruce

Reputation: 1

How do I kill a running Python Script?

I am running a python web scraping script I wrote in a jupyter notebook on a windows 7 system. I am using pyautogui, pywinauto, and pynput. I have the script run 10-40 times but sometimes I need to interupt or kill it. Since the script takes hold of my mouse it is hard to go up to the jupyter notebook to stop it. Any suggestions on what I can do?

I have seen people say press ctrl + c but that isn't working

Thanks!

Upvotes: 0

Views: 783

Answers (1)

Meghdeep Ray
Meghdeep Ray

Reputation: 5537

You can use the interrupt kernel option in the menus. enter image description here

For the shortcuts, use Control + 0 to restart the kernel. Control + I is used to interrupt.

The kernel shortcuts are: enter image description here

Upvotes: 1

Related Questions