# Why my julia keep running in the background, even though I have shut down the terminal?

**URL:** <https://discourse.julialang.org/t/why-my-julia-keep-running-in-the-background-even-though-i-have-shut-down-the-terminal/97870>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [April 24, 2023, 5:15pm UTC](https://discourse.julialang.org/t/why-my-julia-keep-running-in-the-background-even-though-i-have-shut-down-the-terminal/97870 "2023-04-24T17:15:16Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Liu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/daniel_liu/32/49206_2.png) [@Daniel\_Liu](https://discourse.julialang.org/u/Daniel_Liu)\
**Post date:** [April 24, 2023, 5:15pm UTC](https://discourse.julialang.org/t/why-my-julia-keep-running-in-the-background-even-though-i-have-shut-down-the-terminal/97870/1 "2023-04-24T17:15:16Z")

</div>

![未命名](https://global.discourse-cdn.com/julialang/original/3X/f/2/f2437cbf5fe53caf32ce03f3f0389c7ba902c890.png)  
why my julia keep running under the background,even though I have shut down the terminal?

---

<div class="post-metadata">

**Author:** ![SteffenPL](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/steffenpl/32/206270_2.png) [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)\
**Post date:** [April 24, 2023, 5:27pm UTC](https://discourse.julialang.org/t/why-my-julia-keep-running-in-the-background-even-though-i-have-shut-down-the-terminal/97870/2 "2023-04-24T17:27:31Z")

</div>

Just a wild guess, does your python use some Julia? (There are four python tasks and four Julia tasks…)

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [April 24, 2023, 6:19pm UTC](https://discourse.julialang.org/t/why-my-julia-keep-running-in-the-background-even-though-i-have-shut-down-the-terminal/97870/3 "2023-04-24T18:19:22Z")

</div>

e.g. are you running Jupyter notebooks?

---

<div class="post-metadata">

**Author:** ![aramirezreyes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aramirezreyes/32/42573_2.png) [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)\
**Post date:** [April 24, 2023, 6:23pm UTC](https://discourse.julialang.org/t/why-my-julia-keep-running-in-the-background-even-though-i-have-shut-down-the-terminal/97870/4 "2023-04-24T18:23:07Z")

</div>

I have seen some remaining Julia processes when I was using Julia inside VSCode. After I closed the editor the processes remained there.

---

<div class="post-metadata">

**Author:** ![Daniel\_Liu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/daniel_liu/32/49206_2.png) [@Daniel\_Liu](https://discourse.julialang.org/u/Daniel_Liu)\
**Post date:** [April 29, 2023, 8:53am UTC](https://discourse.julialang.org/t/why-my-julia-keep-running-in-the-background-even-though-i-have-shut-down-the-terminal/97870/5 "2023-04-29T08:53:09Z")

</div>

yes,this problem happens after I used Jupyter notebook.However,I have closed the jupyter windows and the program still operate under the background which take up a lot memory. I have no idea how to turn off the program except restarting my computer.

---

<div class="post-metadata">

**Author:** ![lrnv](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lrnv/32/19373_2.png) [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Post date:** [April 29, 2023, 10:00am UTC](https://discourse.julialang.org/t/why-my-julia-keep-running-in-the-background-even-though-i-have-shut-down-the-terminal/97870/6 "2023-04-29T10:00:43Z")

</div>

Can’t you kill it from the task manager at least ?

---

<div class="post-metadata">

**Author:** ![TS-CUBED](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ts-cubed/32/25292_2.png) [@TS-CUBED](https://discourse.julialang.org/u/TS-CUBED)\
**Post date:** [April 29, 2023, 11:11am UTC](https://discourse.julialang.org/t/why-my-julia-keep-running-in-the-background-even-though-i-have-shut-down-the-terminal/97870/7 "2023-04-29T11:11:55Z")

</div>

Jupyter runs as a server. The notebook kernels then get started when you open them in a browser (and each one will start a process/kernel).

Closing the browser window will not shutdown Jupyter server or the notebook kernels.

I don’t know how it works in Windows, how do you start Jupyter and does that open, e.g., a PowerShell window? If yes, that’s the one you need to close.

---

<div class="post-metadata">

**Author:** ![Daniel\_Liu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/daniel_liu/32/49206_2.png) [@Daniel\_Liu](https://discourse.julialang.org/u/Daniel_Liu)\
**Post date:** [April 29, 2023, 7:26pm UTC](https://discourse.julialang.org/t/why-my-julia-keep-running-in-the-background-even-though-i-have-shut-down-the-terminal/97870/8 "2023-04-29T19:26:29Z")

</div>

Thanks for your reply. You are right . After I open the Jupyter file what I just used and shutdown the kernels, the julia programming disappear.But in this way, I have to shutdown the kernels in all Jupyter files which I used one by one.Is there a convenient way to close the kernels?

---

<div class="post-metadata">

**Author:** ![Daniel\_Liu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/daniel_liu/32/49206_2.png) [@Daniel\_Liu](https://discourse.julialang.org/u/Daniel_Liu)\
**Post date:** [April 29, 2023, 7:27pm UTC](https://discourse.julialang.org/t/why-my-julia-keep-running-in-the-background-even-though-i-have-shut-down-the-terminal/97870/9 "2023-04-29T19:27:28Z")

</div>

Yes,I can’t.

---

<div class="post-metadata">

**Author:** ![TS-CUBED](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ts-cubed/32/25292_2.png) [@TS-CUBED](https://discourse.julialang.org/u/TS-CUBED)\
**Post date:** [April 29, 2023, 10:06pm UTC](https://discourse.julialang.org/t/why-my-julia-keep-running-in-the-background-even-though-i-have-shut-down-the-terminal/97870/10 "2023-04-29T22:06:47Z")

</div>

From the Jupyter GUI you’d need to hit the “shutdown” button on all kernels that you can see in the “Running” tab of the main Jupyter screen (the one with the file system browser).

If you started Jupyter from a terminal (or if a terminal opens when you start it) then you can Ctrl-C in there and just say “yes” when it asks if you want to shutdown all kernels.

Can’t help with Windows, though, never really used it.
