# How to halt Julia mid execution?

**URL:** <https://discourse.julialang.org/t/how-to-halt-julia-mid-execution/103874>\
**Category:** General Usage\
**Created:** [September 15, 2023, 3:09am UTC](https://discourse.julialang.org/t/how-to-halt-julia-mid-execution/103874 "2023-09-15T03:09:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaxM](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@MaxM](https://discourse.julialang.org/u/MaxM)\
**Post date:** [September 15, 2023, 3:09am UTC](https://discourse.julialang.org/t/how-to-halt-julia-mid-execution/103874/1 "2023-09-15T03:09:47Z")

</div>

I’m running Julia in Jupyter Notebook. My program was recording a large amount of data that I wanted to keep in a large array `final_ans`. It was about 60% done and I just wanted to give up and save what I had so far. I was actually able to do this yesterday when the program ran out of memory and stopped midway by itself. So how do I just halt the running of the code? Kernel\>Interrupt didn’t do anything. Should I raise an issue over that? Kernel\>restart works but all data is lost.
