Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is juliarc (the Julia startup file)?

Tags:

julia

I gather that Julia used to have a file called juliarc.jl that let you specify things that you wanted Julia to do upon startup. Some time ago, it lived in ~/.julia/config/startup.jl, according to this reference. I now have Julia 1.0.0 on a Windows 7 machine, and I have neither the directory ~/.julia/config nor any files called juliarc.jl.

What is the modern way to tell Julia to do some tasks on startup?

like image 642
Yly Avatar asked Sep 04 '18 23:09

Yly


1 Answers

The location of files has changed in Julia 1.0 (ref: https://github.com/JuliaLang/julia/pull/26161)

Now the locations are the following:

  • Global Julia startup file: JULIA_INSTALL_FOLDER\etc\julia\startup.jl - (where JULIA_INSTALL_FOLDER is the place where Julia is installed, for Linux use the same path with forward slashes /)
  • Local Julia startup file (please note it might not exist): %HOMEPATH%\.julia\config\startup.jl (on Linux use ~/.julia/config/startup.jl)
like image 127
Przemyslaw Szufel Avatar answered Oct 15 '22 14:10

Przemyslaw Szufel