Skip to content

Commit

Permalink
Add a comment for choosing latest_stable_version for Julia
Browse files Browse the repository at this point in the history
  • Loading branch information
mathbunnyru committed Jan 6, 2024
1 parent c515e88 commit 48b189e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions images/minimal-notebook/setup-scripts/setup_julia.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def get_latest_julia_url() -> tuple[str, str]:
"https://julialang-s3.julialang.org/bin/versions.json"
).json()
stable_versions = {k: v for k, v in versions.items() if v["stable"]}
# Compare versions semantically
latest_stable_version = max(
stable_versions, key=lambda ver: [int(sub_ver) for sub_ver in ver.split(".")]
)
Expand Down

0 comments on commit 48b189e

Please sign in to comment.