Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which is the alternative to "workspace()" in julia 1.0?

Tags:

julia

0.7 warns to use revise.jl, but on its documentation I just can't find a command to just say "clean it all".

Yes, I can sure just restart Julia, but in an IDE is several clicks away, while sometimes I just want to clean all variables/modules previously defined..

like image 901
Antonello Avatar asked Aug 16 '18 07:08

Antonello


People also ask

How do you delete a workspace in Julia?

You can clear the Workspace from the Console by pressing Ctrl+D to end Julia and Enter to start it again.

How do you delete a variable in Julia?

In Julia 0.6. You can remove the variable and free up it's memory by calling clear!() .

How do you reset Julia?

To clear Julia REPL, press Ctrl + L .


1 Answers

Yes, I can sure just restart Julia, but in an IDE is several clicks away

Assuming you are using Juno, press Ctrl+j then Ctrl+k.
Docs

This kills the julia process, which will then automatically restart.
It is fairly fast

like image 61
Lyndon White Avatar answered Nov 09 '22 01:11

Lyndon White