I’m using Julia Pro 1.4.0 on Arch Linux. I want to import packages and write a text message to the console (for testing) when I start the REPL. But neither happen. The following is my ~/.julia/config/startup.jl
and ~/.julia/config/juno_startup.jl
.
using LinearAlgebra,BenchmarkTools,JLD2
println("Greetings! 你好! 안녕하세요?")
atreplinit() do repl
println("Greetings! 你好! 안녕하세요?")
try
@eval using LinearAlgebra,BenchmarkTools,JLD2
catch e
@warn "error while importing" e
end
end
This has no effect at startup of either the binary in bash or the REPL within Juno. I have verified that the julia program has been killed before it is loaded again.
What is the distinction between startup.jl
and juno_startup.jl
?