# Cannot stop active code in jupyter notebook vscode

**URL:** <https://discourse.julialang.org/t/cannot-stop-active-code-in-jupyter-notebook-vscode/119663>\
**Category:** Jupyter-Notebook\
**Created:** [September 21, 2024, 4:04am UTC](https://discourse.julialang.org/t/cannot-stop-active-code-in-jupyter-notebook-vscode/119663 "2024-09-21T04:04:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsenne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rsenne/32/212973_2.png) [@rsenne](https://discourse.julialang.org/u/rsenne)\
**Post date:** [September 21, 2024, 4:04am UTC](https://discourse.julialang.org/t/cannot-stop-active-code-in-jupyter-notebook-vscode/119663/1 "2024-09-21T04:04:41Z")

</div>

Curious if others have had this issue using Julia w/ Jupyter Notebooks in VSCode. Notebooks otherwise work fine, except I can never actually seem to interrupt running cells (i.e., the stop and interrupt buttons are essentially useless) and if a program stalls etc., I almost always have to restart VSCode. This can be a rather tedious and annoying problem and was wondering what solutions if any existed…

---

<div class="post-metadata">

**Author:** ![rsenne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rsenne/32/212973_2.png) [@rsenne](https://discourse.julialang.org/u/rsenne)\
**Post date:** [September 21, 2024, 1:59pm UTC](https://discourse.julialang.org/t/cannot-stop-active-code-in-jupyter-notebook-vscode/119663/3 "2024-09-21T13:59:08Z")

</div>

Hmm yeah, after a bit more searching I found that this has been referenced numerous times…

> <https://github.com/microsoft/vscode-jupyter/issues/10328>
>
> \### Applies To
> 
> \- \[X\] Notebooks (.ipynb files)
> \- \[\] Interactive Window and\\/…or Cell Scripts (.py files with \\#%% markers)
> 
> \### What happened?
> 
> When I click the restart/stop button in jupyter while a code block is running, the timer on the running cell does not stop and I simply cannot rerun the ipynb file. "Go to running cell" still shows that the code block is running. I just have to close VSCode to start over. ^c does not work, either.
> 
> \- Julia's workspace is cleared as it is supposed to be, though.
> \- Buttons and ^c work when I work with Python.
> 
> 
> \---- Version Info not mentioned below ----
> Windows Version: 21H2
> Julia: 1.7.3 (the problem persists in the older versions, too)
> 
> 
> \### VS Code Version
> 
> 1.67.2
> 
> \### Jupyter Extension Version
> 
> v2022.4.1021342353
> 
> \### Jupyter logs
> 
> \_No response\_
> 
> \### Coding Language and Runtime Version
> 
> Julia 1.7.3
> 
> \### Language Extension Version (if applicable)
> 
> \_No response\_
> 
> \### Anaconda Version (if applicable)
> 
> \_No response\_
> 
> \### Running Jupyter locally or remotely?
> 
> Local

Doesn’t seem to be a clear solution…might just switch to Pluto in that case…

---

<div class="post-metadata">

**Author:** ![Gus\_Hart](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gus_hart/32/6987_2.png) [@Gus\_Hart](https://discourse.julialang.org/u/Gus_Hart)\
**Post date:** [April 29, 2025, 4:52pm UTC](https://discourse.julialang.org/t/cannot-stop-active-code-in-jupyter-notebook-vscode/119663/5 "2025-04-29T16:52:17Z")

</div>

This is an old thread. I just started using notebooks in vscode/cursor. Same problem. For my workflow this makes jupyter notebooks almost useless.

Did pluto work any better for you?

---

<div class="post-metadata">

**Author:** ![ForceBru](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/forcebru/32/21389_2.png) [@ForceBru](https://discourse.julialang.org/u/ForceBru)\
**Post date:** [April 29, 2025, 5:00pm UTC](https://discourse.julialang.org/t/cannot-stop-active-code-in-jupyter-notebook-vscode/119663/6 "2025-04-29T17:00:51Z")

</div>

Pluto usually can interrupt single-threaded code, but interrupting multithreaded code usually crashes the entire Pluto server for me.

---

<div class="post-metadata">

**Author:** ![rsenne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rsenne/32/212973_2.png) [@rsenne](https://discourse.julialang.org/u/rsenne)\
**Post date:** [April 29, 2025, 5:01pm UTC](https://discourse.julialang.org/t/cannot-stop-active-code-in-jupyter-notebook-vscode/119663/7 "2025-04-29T17:01:52Z")

</div>

Yes, Pluto can be more responsive than Jupyter notebooks in VSCode, but there’s a significant trade-off. Since Pluto runs through your browser connected to a server, you’d lose the integrated VSCode IDE experience you’re likely seeking in the first place. The improved responsiveness comes at the cost of moving away from the code editor environment entirely, which defeats the original purpose of using notebooks within VSCode. Of course since Pluto files are just .jl files, you could just edit it in VSCode and then run the server, but again, my guess is that this isn’t what you want from your workflow.

There did seem to be an attempt to get [Pluto to work in VScode](https://github.com/JuliaComputing/pluto-vscode). But the last commit to that project was 4 years ago. So overall, a bit frustrating overall.

---

<div class="post-metadata">

**Author:** ![Gus\_Hart](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gus_hart/32/6987_2.png) [@Gus\_Hart](https://discourse.julialang.org/u/Gus_Hart)\
**Post date:** [April 29, 2025, 5:11pm UTC](https://discourse.julialang.org/t/cannot-stop-active-code-in-jupyter-notebook-vscode/119663/8 "2025-04-29T17:11:22Z")

</div>

I’m not really in the habit of working in notebooks—I usually like the interactivity of the REPL+file in vscode. But when I have a bunch of plots, and explanatory text, a notebook-style report exported to PDF to share with collaborators would be nice. I just haven’t found good way (other than a notebook) to include text/math, plots, and code together in a way that makes a nice report.

But with the notebook frequently getting stuck (say, in a long loop that I want to change my mind about), forcing me to restart vscode and rerun, it’s not a viable option.

---

<div class="post-metadata">

**Author:** ![rsenne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rsenne/32/212973_2.png) [@rsenne](https://discourse.julialang.org/u/rsenne)\
**Post date:** [April 29, 2025, 5:12pm UTC](https://discourse.julialang.org/t/cannot-stop-active-code-in-jupyter-notebook-vscode/119663/9 "2025-04-29T17:12:42Z")

</div>

Yeah I hear that. I think Pluto will work great then. That’s basically why I use notebooks too and it has worked out well for me.
