# How can I restart Julia

**URL:** https://discourse.julialang.org/t/how-can-i-restart-julia/129840
**Category:** New to Julia
**Created:** [June 12, 2025, 3:41pm UTC](https://discourse.julialang.org/t/how-can-i-restart-julia/129840 "2025-06-12T15:41:00Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [June 12, 2025, 5:45pm UTC](https://discourse.julialang.org/t/how-can-i-restart-julia/129840/4 "2025-06-12T17:45:27Z")

</div>

Link to related thread:

> [@Programmatically restart julia](https://discourse.julialang.org/t/programmatically-restart-julia/73806/6):
>
> FYI, a more complete function by @fredrikekre is [available here](https://github.com/JuliaLang/julia/issues/32129#issue-448121208), and it is called restart(). I added it to the startup.jl file and tested it in VS Code and in a standalone Julia REPL and it seems to work very well. For the latter, it restarts the REPL in the same window very quickly in Julia 1.9 and thus, it might be seen as a “clear workspace” analogue.

---

_[View the full topic](https://discourse.julialang.org/t/how-can-i-restart-julia/129840)._
