The following worked for me:
import sys
sys.exit()
On newer versions of ipython, as mentioned above and below, this doesn’t work.
In that case,
import os
os._exit(0)
should still do the trick.
The following worked for me:
import sys
sys.exit()
On newer versions of ipython, as mentioned above and below, this doesn’t work.
In that case,
import os
os._exit(0)
should still do the trick.