This class will use the Julia programming language as well as Python's matplotlib library for visualizations.
Install the latest Julia from https://julialang.org/downloads/
Enable the Julia extension in VScode.
Under Windows and Linux, launch Julia, press ]
to open its package manager then type add PyPlot
.
To use the default python within Julia, type :
ENV["PYTHON"]=""
ENV["MPLBACKEND"]="qt5agg"
Then go to the package manager ]
and type add PyCall
, then add PyPlot
.
-
Launch julia from the command line.
-
Check that it can do basic operations, e.g. input
2+2
then press enter. -
Check that it can plot basic functions using the PyPlot library.
using PyPlot
x=range(-pi, pi, length=100)
plot(x,sin.(x))
grid()
These three links should get you started:
- https://learnxinyminutes.com/docs/julia/
- https://www.sas.upenn.edu/~jesusfv/Chapter_HPC_8_Julia.pdf
- https://computationalthinking.mit.edu/Fall23/
If you already master Matlab or Python also check https://cheatsheets.quantecon.org/
Also see http://juliaastro.github.io for useful functions in Astronomy.