ubcecon / computing_and_datascience

Sandbox and workspace for computing and datascience infrastructure and course materials.
MIT License
8 stars 12 forks source link

Package activation from a URL for Jupyter Notebooks #85

Closed jlperla closed 5 years ago

jlperla commented 6 years ago

Example code from Valentin Churavy on slack ``` import LibGit2 using Pkg env = joinpath(@DIR, "DemoEnvironment") isdir(env) || LibGit2.clone("https://gist.github.com/2e4ebf0df689f4409d4341d366c89f15.git", env) repo = LibGit2.GitRepo(env) LibGit2.checkout!(repo, "708b17c88a89a88f08f4f1070e04b2a32974b1b7", force = true) Pkg.activate(env) pkg"instantiate" pkg"precompile"