juliarc(Julia 启动文件)在哪里? [英] Where is juliarc (the Julia startup file)?

查看:17
本文介绍了juliarc(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?

解决方案

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_FOLDERetcjuliastartup.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%.juliaconfigstartup.jl (on Linux use ~/.julia/config/startup.jl)

这篇关于juliarc(Julia 启动文件)在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆