-
Follow the instructions to install Julia and Jupyter
-
Open the Julia REPL (see the documentation above) and then install the package (by entering package mode) with
] add https://github.com/jlperla/KnowledgeDiffusionSimulations.jl.git
-
There are several ways you can run the notebooks after installation
Using the built-in Jupyter is straightforward. In the Julia terminal
using KnowledgeDiffusionSimulations, IJulia notebook(detached=true, dir=dirname(dirname(pathof(KnowledgeDiffusionSimulations))))
Alternatively, to use a separate Jupyter installation you may have installed with Anaconda,
using KnowledgeDiffusionSimulations cd(dirname(dirname(pathof(KnowledgeDiffusionSimulations)))) ; jupyter lab
where the last step runs your
jupyter lab
in the shell.Note In either case, the first time the
using
it will be very slow -
The code for individual examples and experiences are in the
notebooks/.ipynb
files
NOTE: When using the notebooks for the first time, it will be very slow as the package and its dependencies are all compiled.