Make sure to download a copy of Julia 0.5 and not the newer version: Julia 0.6. Some of the modules are not yet compatible with 0.6
Follow this link to download a copy of Julia 0.5: Julia 0.5
Install like any other program and you should be able to run basic commands in the Julia interpreter that appears once the installation finishes
Next it is time to install the Jupyter notebook extension to Julia. The recommended way to install Jupyter notebooks is to first install Anaconda. Installing Anaconda will also install a copy of Python onto your device. Although you may not explicitly use python, Julia can use different python functions so it is important to have it installed
Follow this link to download a copy of Anaconda (Choose python 3.6 option): Anaconda
After you have installed Anaconda, it is time to make Jupyter compatible with Julia. To do this, navigate to Julia through either the menu or desktop icon (This should open the Julia interpreter)
Pkg.add("IJulia")
Once the above command is finished, open up a new terminal and type:
jupyter notebook
Jupyter is installed properly when the above command opens the Jupyter application and displays the different directories on your device
Download and unzip the aere504-notebook directory: aere504-notebook-archive.zip from the following link: GitHub
Once you have downloaded the course code, move that folder into the julia folder that was created in step 2. This can be done in Finder or in Jupyter by opening the new folder and selecting upload
To install all required packages, create a julia notebook by selecting New and then Julia
In the first cell block, type the following code and then hit shift-enter, or shift-return to execute the cell:
include("aero504-notebook-master/install.jl")
The final packages to install are: pdf2svg and MacTeX
pdf2svg
brew install pdf2svg
MacTeX
Once both packages are installed, restart your device
open ~/.julia/v0.5/BayesNets/src
Right-click on the io.jl file and open with TextEdit or an application that can open code files
On line 9 you will see the code:
plot(Graph(1), ["Empty Graph"])
plot(DiGraph(1), ["Empty Graph"])
This section addresses creating a new python 3.6 environment if you already have Anaconda installed with python 2.
To create a new python environment, run the following code in the command line and follow the instructions:
conda create -n my_env_name_here python=3.6
Note: You create your own environment name
To activate your new environment run:
source activate my_env_name_here
Then run the jupyter notebook command to start a python notebook in your new environment