https://github.com/astrobarker/julia_intro
Some Julia basics and resources
https://github.com/astrobarker/julia_intro
Last synced: over 1 year ago
JSON representation
Some Julia basics and resources
- Host: GitHub
- URL: https://github.com/astrobarker/julia_intro
- Owner: AstroBarker
- Created: 2021-05-07T00:15:55.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-24T18:27:41.000Z (about 5 years ago)
- Last Synced: 2025-02-04T10:56:41.235Z (over 1 year ago)
- Language: Jupyter Notebook
- Size: 1.12 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Intro to Julia
This repo has some basics I put together to introduce colleagues to the Julia programming language: [slides](julia_basics.pdf) and [notebook](julia_notebook.ipynb).
They are not meant to be comprehensive, focusing on overarching themes and introducing syntax for some common use cases.
More resources are listed in [resources.md](resources.md).
If you do not yet have Julia, [download it](https://julialang.org/downloads/).
You may want to alias the Julia executable `alias julia='/path/to/julia/bin/julia'`.
On my Mac, the path looks like this `alias julia='/Applications/Julia-1.6.app/Contents/Resources/julia/bin/julia'` (more complciated than on linux systems).
I'll assume this command is available to you.
To use this resource you don't need any dependencies already installed except `IJulia`.
If you do not yet have this, enter the julia REPL by typing `julia` at the command line.
Once there you may type `]` to enter the package manager mode followed by `add IJulia` or `using Pkg` following by `Pkg.add("IJulia)`.
`exit()` to exit.
All other dependencies may be installed in the notebook.
Alternatively, the script [setup.jl](setup.jl) can be ran with `julia setup.jl` and will install all the packages used here and set Julia to use your Python installation.
We will use:
* [Plots](https://docs.juliaplots.org/latest/)
* [BenchmarkTools](https://juliapackages.com/p/benchmarktools)
* [PyCall](https://juliapackages.com/p/pycall)
* [PyPlot](https://juliapackages.com/p/pyplot)
* [DataFrames](https://juliapackages.com/p/dataframes)
Also useful is [HDF5.jl](https://juliapackages.com/p/hdf5) for easily reading and writing HDF5 files.
I provide an example function using this in [HDF5_example.jl](HDF5_example.jl).