mitmath / mitmath/computational-thinking
Preinstall packages for offline access
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 2.8k
- Forks
- 502
- PR merge metrics
- No merged PRs in 30d
Description
Not strictly an issue; I just thought this may be useful to others. Also not an expert in Julia so if there's an easier way to do this please do correct the script.
I wanted to access the notebooks offline but due to Pluto installing packages per notebook, each notebook must be instantiated while having internet access. This script does that for every notebook in the notebooks directory in the Spring21 branch:
using Glob
import Pluto
import Pkg
function main()
dirs = glob("./week*/*.jl")
for jl_file in dirs
println(jl_file)
Pluto.activate_notebook_environment(jl_file)
Pkg.instantiate()
end
end
main()
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the notebooks directory and the Spring21 branch context first, then run the provided Julia script to understand how Pluto environments are activated and instantiated. Done means the notebooks' environments can be prepared for offline access; the issue does not name a target file or test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100