How would I interrupt a Julia command with the keyboard? I'm running it in the Terminal interface. For example, in Python, IDLE permits me to throw an error in a while True
loop by pressing ctrl-C
. I would like to be able to do the same thing in Julia.
Thanks!
Asked
Active
Viewed 6,029 times
5

user2569332
- 555
- 1
- 4
- 12
-
ctrl-C should work in Julia also, so if it doesn't it is a bug. If you are using the most recent nightly build, you should submit a bug report including your versioninfo(), and steps to reproduce, on https://github.com/JuliaLang/julia – ivarne Oct 24 '13 at 05:00
-
using v0.2.0-rc1 I find that Ctrl-C works to break out of a `while true` loop. To quit the REPL, it doesn't work but Ctrl-D does. – Sean Mackesey Oct 24 '13 at 16:41
1 Answers
3
Ctrl+c works in the Julia REPl. In Juno you use Ctrl+j Ctrl+k.

Chris Rackauckas
- 18,645
- 3
- 50
- 81
-
1This doesn't quite work for me in either Julia's own REPL, cmd running the Julia REPL, or Powershell running the Julia REPL. If I hold Ctrl and press C four times rapidly, it does interrupt the process (like `while true end`), but then it crashes out of the REPL entirely, trashing my workspace. – TigerhawkT3 Dec 21 '16 at 15:33
-
And in [Pluto.jl](https://github.com/fonsp/Pluto.jl) what should I type ? – stegua Nov 06 '21 at 06:59