Link Search Menu Expand Document

Julia Tutorials


Table of Contents
  1. Other Julia Resources
  2. Installing/Opening Julia & Pluto
  3. Creating a New Lab Notebook
  4. Loading CSV Files
  5. Working with Data Frames
  6. Plotting Data
  7. Fitting a Linear Model
  8. Making Julia Load Faster
  9. How to Make a Portable Installation of Juno

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

Working with Data Frames

Plotting Data

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:

  1. 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.
  2. Use PackageCompiler to create a sysimage.

    • To load Julia with the custom sysimage file use julia --sysimage sys_plots.so, for example.

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.

  1. Download the Atom ZIP file and extract to the desired location.
  2. Create a folder next to the extracted Atom app called .atom.
  3. If desired, change the name to Juno and the icon to the Juno icon.
  4. Install Juno through the Atom package manager.