# Kernel interruption in Jupyter

**URL:** <https://discourse.julialang.org/t/kernel-interruption-in-jupyter/37405>\
**Category:** New to Julia\
**Created:** [April 11, 2020, 5:27pm UTC](https://discourse.julialang.org/t/kernel-interruption-in-jupyter/37405 "2020-04-11T17:27:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![erlebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erlebach/32/12973_2.png) [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Post date:** [April 11, 2020, 5:27pm UTC](https://discourse.julialang.org/t/kernel-interruption-in-jupyter/37405/1 "2020-04-11T17:27:00Z")

</div>

I am executing somebody’s notebook in Jupyter. During a long calculation, I interrupt the cell, and the kernel restarts. All modules must be recompiled. How can I avoid this recompilation? Why should it be necessary if the precompiled files can be found under $HOME/.julia somewhere? Thanks.

---

<div class="post-metadata">

**Author:** ![Jollywatt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jollywatt/32/202198_2.png) [@Jollywatt](https://discourse.julialang.org/u/Jollywatt)\
**Post date:** [May 11, 2022, 2:33am UTC](https://discourse.julialang.org/t/kernel-interruption-in-jupyter/37405/2 "2022-05-11T02:33:55Z")

</div>

I still have this issue, specifically when waiting for `Flux.jl` computations in Jupyter. Interrupting (e.g., to terminate an indefinite training algorithm) will often kill the kernel, losing state, which is prohibitively annoying.

How can we fix kernel interruptions being fatal?
