Closed tlienart closed 1 year ago
Preview should be up in a couple of mins at https://tlienart.github.io/Xranklin.jl/previews/PR197 (if you get a 404, wait 30s then refresh).
Preview should be up in a couple of mins at https://tlienart.github.io/Xranklin.jl/previews/PR197 (if you get a 404, wait 30s then refresh).
Pre-existing stuff
At any point in a file, a user can do
\activate{...}
which will try to activate+instantiate and code run after that will be in that project (unless changed). E.g.:foo.md
:\literate{path/to/script.jl; project=.} # activate folder 'path/to' \literate{path/to/script.jl; project="."} # same, quotes are not mandatory \literate{path/to/script.jl; project="./foo"} # activate folder 'path/to/foo' (relative) \literate{path/to/script.jl; project="foo/bar"} # activate folder 'foo/bar' (absolute with respect to folder path)
[deps] StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
abc
using StableRNGs rand(StableRNG(0))
def
Calling a literate script:
\literate{notebooks/script.jl; project=.}