Julia Tutorials
Table of Contents
Other Julia Resources
- The book Think Julia is available as an e-book through the library.
Installing/Opening Julia & Pluto
- View the video on Installing and Opening Julia in Lab 0.
Creating a New Lab Notebook
Loading CSV Files
- View this example as a web page
- Download the Pluto Notebook for this Example: https://github.com/chem370/chem370.github.io/raw/master/docs/julia/anscombe_CSV.jl
Working with Data Frames
- View this example as a web page
- Download the Pluto Notebook for this Example: https://github.com/chem370/chem370.github.io/raw/master/docs/julia/anscombe_dataframe.jl
Plotting Data
- View the video tutorial for this example
- View this example as a web page
- Download the Pluto Notebook for this Example:https://github.com/chem370/chem370.github.io/raw/master/docs/julia/anscombe_plot.jl
- The official documentation for plotting in Julia: http://docs.juliaplots.org/latest/
Fitting a Linear Model
- View the video tutorial for this example
- View this example as a web page
- Download the Pluto Notebook for this Example
Making Julia Load Faster
The “time to first plot” problem in Julia describes how it can take a relatively long time to start Julia and start working with data and/or get a plot displayed. This is because all the packages you load must precompile each time Julia is started, and this process can take a long time. The problem can be circumvented or alleviated in several ways:
- Leave Julia running all the time and don’t restart it unless necessary. This is the easiest solution, but is not always possible or desirable.
-
Use
PackageCompiler
to create a sysimage.- To load Julia with the custom sysimage file use
julia --sysimage sys_plots.so
, for example.
- To load Julia with the custom sysimage file use
How to Make a Portable Installation of Juno
The Julia IDE Juno is built on Atom. This can be problematic when trying to use both Atom and Juno. One solution is to create a portable installation of Atom that is used as the Juno installation, and maintain a normal installation of Atom for routine Atom work. The steps below describe how to create the portable installation of Atom.
- Download the Atom ZIP file and extract to the desired location.
- Create a folder next to the extracted Atom app called
.atom
. - If desired, change the name to Juno and the icon to the Juno icon.
- Install Juno through the Atom package manager.