-
Notifications
You must be signed in to change notification settings - Fork 2
/
SetupFile.jl
62 lines (47 loc) · 1.5 KB
/
SetupFile.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
## Quarto Mac Setup for Tutorial Editing and Making
# download Quarto
## Create manifest and project for tutorials
import(Pkg)
# activate working directory and project
Pkg.activate(".")
# add packages to generate manifest
# julia packages for tutorials
Pkg.add("Plots")
Pkg.add("Random")
Pkg.add("CSV")
Pkg.add("DataFrames")
Pkg.add("EcologicalNetworks")
Pkg.add("EcologicalNetworksDynamics")
Pkg.add("EcologicalNetworksPlots")
Pkg.add("StatsPlots")
# look here for info on setting VS up to run Julia
# it uses jupyter underneath.
# https://quarto.org/docs/computations/julia.html#installation
# things for rendering Julia with Quarto
Pkg.add("IJulia")
Pkg.add("Revise")
Pkg.add("Conda")
# this should install a minimal python/Jupyter install
using IJulia
notebook() # this is what triggers the minimal install?
## the larger install for Jupyter is via (or via any other pip)
## it's ok to do this... but try above first.
# python3 -m pip install jupyter
# then, create jupyter caching
using Conda
Conda.add("jupyter-cache")
# to make IJulia work with Revise
# Revise.jl is a library that helps you keep your
# Julia sessions running longer, reducing the need to
# restart when you make changes to code.
# # make this file to use Revise with iJulia
# cd ~/.julia # navigate
# mkdir config # make directory
# cd config # move to it
# touch startup_ijulia.jl # to create file
# pico # to edit with this code
# try
# @eval using Revise
# catch e
# @warn "Revise init" exception=(e, catch_backtrace())
# end