Skip to content

Commit

Permalink
docs: remove the InteractiveUtils and Literate deps
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Sep 22, 2024
1 parent 55caf08 commit 71f008b
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 37 deletions.
5 changes: 3 additions & 2 deletions docs/run_single_tutorial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ name = ARGS[1]
pkg_log_path = joinpath(storage_dir, "$(name)_pkg.log")
output_directory = ARGS[2]
path = ARGS[3]
push!(LOAD_PATH, "@literate") # Should have the Literate and InteractiveUtils packages

io = open(pkg_log_path, "w")
warn_old_version = try
Expand All @@ -16,7 +17,7 @@ warn_old_version = try
catch err
err isa Pkg.Resolve.ResolverError || rethrow()
@warn "Failed to install the latest version of Lux.jl. This is possible when the \
downstream packages haven't been updated to support latest releases yet."
downstream packages haven't been updated to support latest releases yet." err=err
true
end
Pkg.instantiate(; io)
Expand All @@ -26,7 +27,7 @@ using Literate

function preprocess(path, str)
if warn_old_version
st = """
str = """
!!! danger "Using older version of Lux.jl"
This tutorial cannot be run on the latest Lux.jl release due to downstream
Expand Down
5 changes: 3 additions & 2 deletions docs/tutorials.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ const NTASKS = min(

@info "Starting Lux Tutorial Build with $(NTASKS) tasks."

run(`$(Base.julia_cmd()) --startup=no --code-coverage=user --threads=$(Threads.nthreads()) --project=@literate -e 'import Pkg; Pkg.add(["Literate", "InteractiveUtils"])'`)

asyncmap(TUTORIALS_BUILDING; ntasks=NTASKS) do (i, (d, p))
@info "Running Tutorial $(i): $(p) on task $(current_task())"
path = joinpath(@__DIR__, "..", "examples", p)
Expand All @@ -66,8 +68,7 @@ asyncmap(TUTORIALS_BUILDING; ntasks=NTASKS) do (i, (d, p))
withenv("JULIA_NUM_THREADS" => "$(Threads.nthreads())",
"JULIA_CUDA_HARD_MEMORY_LIMIT" => "$(100 ÷ NTASKS)%",
"JULIA_PKG_PRECOMPILE_AUTO" => "0", "JULIA_DEBUG" => "Literate") do
cmd = `$(Base.julia_cmd()) --code-coverage=user --threads=$(Threads.nthreads()) --project=$(tutorial_proj) "$(file)" "$(name)" "$(output_directory)" "$(path)"`
run(cmd)
run(`$(Base.julia_cmd()) --startup=no --code-coverage=user --threads=$(Threads.nthreads()) --project=$(tutorial_proj) "$(file)" "$(name)" "$(output_directory)" "$(path)"`)
end

return
Expand Down
3 changes: 0 additions & 3 deletions examples/Basics/Project.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[deps]
ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
Lux = "b2108857-7c20-44ae-9111-449ecde12c47"
LuxCUDA = "d0bbae9a-e099-4d5b-a835-1c6931763bda"
Optimisers = "3bd65402-5787-11e9-1adc-39752487f4e2"
Expand All @@ -14,7 +12,6 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
CUDA_Driver_jll = "0.9, 0.10"
ComponentArrays = "0.15"
ForwardDiff = "0.10"
Literate = "2"
Lux = "1"
LuxCUDA = "0.3"
Optimisers = "0.3"
Expand Down
3 changes: 0 additions & 3 deletions examples/BayesianNN/Project.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
[deps]
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
Functors = "d9f16b24-f501-4c13-a1f2-28368ffc5196"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
Lux = "b2108857-7c20-44ae-9111-449ecde12c47"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"
Expand All @@ -14,7 +12,6 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
CairoMakie = "0.12"
Functors = "0.4"
LinearAlgebra = "1"
Literate = "2"
Lux = "1"
Random = "1"
Tracker = "0.2"
Expand Down
3 changes: 0 additions & 3 deletions examples/GravitationalWaveForm/Project.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
[deps]
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
LineSearches = "d3d80556-e9d4-5f37-9878-2ab0fcc64255"
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
Lux = "b2108857-7c20-44ae-9111-449ecde12c47"
Optimization = "7f7a1694-90dd-40f0-9382-eb1efda571ba"
OptimizationOptimJL = "36348300-93cb-4f02-beb5-3c3902f8871e"
Expand All @@ -16,7 +14,6 @@ SciMLSensitivity = "1ed8b502-d754-442c-8d5d-10ac956f44a1"
CairoMakie = "0.12"
ComponentArrays = "0.15"
LineSearches = "7"
Literate = "2"
Lux = "1"
Optimization = "4"
OptimizationOptimJL = "0.4"
Expand Down
3 changes: 0 additions & 3 deletions examples/HyperNet/Project.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
Lux = "b2108857-7c20-44ae-9111-449ecde12c47"
LuxCUDA = "d0bbae9a-e099-4d5b-a835-1c6931763bda"
MLDatasets = "eb30cadb-4394-5ae3-aed4-317e484a6458"
Expand All @@ -18,7 +16,6 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
[compat]
ADTypes = "1"
ComponentArrays = "0.15"
Literate = "2"
Lux = "1"
LuxCUDA = "0.3"
MLDatasets = "0.7"
Expand Down
2 changes: 0 additions & 2 deletions examples/NeuralODE/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[deps]
ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
Lux = "b2108857-7c20-44ae-9111-449ecde12c47"
LuxCUDA = "d0bbae9a-e099-4d5b-a835-1c6931763bda"
MLDatasets = "eb30cadb-4394-5ae3-aed4-317e484a6458"
Expand All @@ -17,7 +16,6 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[compat]
ComponentArrays = "0.15"
Literate = "2"
Lux = "1"
LuxCUDA = "0.2, 0.3"
MLDatasets = "0.5, 0.7"
Expand Down
4 changes: 0 additions & 4 deletions examples/OptimizationIntegration/Project.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
[deps]
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
IterTools = "c8e1da08-722c-5040-9ed9-7db0dc04731e"
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
Lux = "b2108857-7c20-44ae-9111-449ecde12c47"
LuxCUDA = "d0bbae9a-e099-4d5b-a835-1c6931763bda"
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54"
Expand All @@ -18,9 +16,7 @@ SciMLSensitivity = "1ed8b502-d754-442c-8d5d-10ac956f44a1"
[compat]
CairoMakie = "0.12.10"
ComponentArrays = "0.15.17"
InteractiveUtils = "<0.0.1, 1"
IterTools = "1.10"
Literate = "2.19"
Lux = "1"
LuxCUDA = "0.3.3"
MLUtils = "0.4.4"
Expand Down
6 changes: 1 addition & 5 deletions examples/PINN2DPDE/Project.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
Lux = "b2108857-7c20-44ae-9111-449ecde12c47"
LuxCUDA = "d0bbae9a-e099-4d5b-a835-1c6931763bda"
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54"
Expand All @@ -14,10 +12,8 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[compat]
ADTypes = "1.7.1"
ADTypes = "1.8.1"
CairoMakie = "0.12.10"
InteractiveUtils = "<0.0.1, 1"
Literate = "2"
Lux = "1"
LuxCUDA = "0.3.3"
MLUtils = "0.4.4"
Expand Down
3 changes: 0 additions & 3 deletions examples/PolynomialFitting/Project.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
Lux = "b2108857-7c20-44ae-9111-449ecde12c47"
LuxCUDA = "d0bbae9a-e099-4d5b-a835-1c6931763bda"
Optimisers = "3bd65402-5787-11e9-1adc-39752487f4e2"
Expand All @@ -14,7 +12,6 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
[compat]
ADTypes = "1"
CairoMakie = "0.12"
Literate = "2"
Lux = "1"
LuxCUDA = "0.3"
Optimisers = "0.3"
Expand Down
3 changes: 0 additions & 3 deletions examples/SimpleChains/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
Lux = "b2108857-7c20-44ae-9111-449ecde12c47"
MLDatasets = "eb30cadb-4394-5ae3-aed4-317e484a6458"
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54"
Expand All @@ -14,7 +12,6 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[compat]
ADTypes = "1"
Literate = "2"
Lux = "1"
MLDatasets = "0.7.14"
MLUtils = "0.4"
Expand Down
5 changes: 1 addition & 4 deletions examples/SimpleRNN/Project.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819"
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
Lux = "b2108857-7c20-44ae-9111-449ecde12c47"
LuxCUDA = "d0bbae9a-e099-4d5b-a835-1c6931763bda"
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54"
Expand All @@ -14,8 +12,7 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[compat]
ADTypes = "1"
JLD2 = "0.4, 0.5"
Literate = "2"
JLD2 = "0.5"
Lux = "1"
LuxCUDA = "0.3"
MLUtils = "0.4"
Expand Down

0 comments on commit 71f008b

Please sign in to comment.