generated from JuliaAI/MLJExampleInterface.jl
-
Notifications
You must be signed in to change notification settings - Fork 25
JuliaCon 2022 workshop: Getting started with Julia and MLJ
Anthony Blaom, PhD edited this page Oct 11, 2022
·
5 revisions
Julia compiles code the first time it is used. To avoid these initial compilation delays, the setup below carries out precompilation tailored to the workshop content. It is not part of a standard Julia workflow and beginners do not need to understand it.
-
In a new Julia session type the following at the
julia>
prompt:
ENV["JULIA_PKG_PRECOMPILE_AUTO"]=0
using Pkg
Pkg.activate(temp=true)
Pkg.develop(url="https://github.com/ablaom/HelloJulia.jl/#julia-1-7")
Pkg.activate(joinpath(Pkg.devdir(), "HelloJulia"))
Pkg.instantiate()
ENV["JULIA_PKG_PRECOMPILE_AUTO"]=1
using HelloJulia
setup()
Ignore any "ld: warning" you get. This will take several minutes.
- Quit Julia with
control-D
and restart.
To test your installation, relaunch Julia and run:
using Pkg; Pkg.activate(joinpath(Pkg.devdir(), "HelloJulia"))
using HelloJulia
pluto()
This should launch a window in your browser with "Pluto" at the top. You can kill the process by returning to the Julia window where you entered the above commands and entering stop()
. Exit julia with CTRL-D
or exit()
.