Julia is an open source, high-level, strongly typed, dynamic, functional programming language designed for numerical analysis and computational science. Julia attempts to solve the “Two-Language” problem allowing to coding everything in a single language balancing both performance (as in C or Fortran) and productivity (as in Python). [Article: Why we create Julia]](https://julialang.org/blog/2012/02/why-we-created-julia/)
Please download Julia from https://julialang.org/downloads/ and follow the installation instructions presented at https://julialang.org/downloads/platform/. Install the current stable release.
Follow one of the following instructions to setup development environment
using Pkg
Pkg.add("IJulia")
using IJulia
IJulia.notebook(dir=".")
using Pkg
Pkg.add("Pluto")
using Pluto
Pluto.run()
julia>
: Julia REPL to interact with Julia Engineshell>
: Enter through “;” for using shell command at REPL
cmd = `echo hello`
run(cmd)
help>
: Enter through “?” for using help, search through documentation(ENVNAME) pkg>
: Entered through “]” for using Pkg.jl, Julia’s Package Manager, which activates the environment, and work with package registry, Alternatively import or use using Pkg
activate myEnv
: creates and activates a new environment tracked by manifest filePkg.activate(; temp=true)
: create temp env will be deleted when the julia process is exitedadd Distributions Plots
: add packages, specify git repository URL to refer to unregistered packagesrm Distributions Plots
: remove packagesupdate Plots
: Update Packagesinstantiate
: Download all pacakges declared in Manifest.toml if it exists else resolve from Project.tomlPkg.gc(; collect_delay::Period=Day(7), io::IO=stderr)
#s weep over all known Manifest.toml and Artifacts.toml, makring “orphaned” artifacts and packages, and removing them if the pacakges are unsued for collect_delay period.(reverse-i-search)
Enter through “^R” (Ctrl+R) for using previous commands matching a patternBACKSPACE
Other common commands
; at the end of expression suppresses REPL output
One can access REPL through Julia cell in Jupyter Notebook as well