Skip to content

Commit

Permalink
weakdeps InteractiveUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
dehann committed Jul 12, 2023
1 parent ee0a5ac commit 0108762
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ TimeZones = "f269a46b-ccf7-5d73-abea-4c690281aa53"
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"

[weakdeps]
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
Interpolations = "a98d9a8b-a2ab-59e6-89dd-64a1c18fca59"

[extensions]
InterpolationsExt = "Interpolations"
InteractiveUtilsExt = "InteractiveUtils"

[compat]
ApproxManifoldProducts = "0.7"
Expand Down Expand Up @@ -95,7 +97,6 @@ julia = "1.8"
DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa"
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
LineSearches = "d3d80556-e9d4-5f37-9878-2ab0fcc64255"
Manopt = "0fc0a36d-df90-57f3-8f93-d78a9fc72bb5"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
module InteractiveUtilsExt

@info "IncrementalInference.jl is loading tools related to InteractiveUtils.jl."
@info "IncrementalInference.jl is loading extension related to InteractiveUtils.jl."

# this requires InteractiveUtils
using InteractiveUtils
using DocStringExtensions

export getCurrentWorkspaceFactors, getCurrentWorkspaceVariables
export listTypeTree
Expand Down Expand Up @@ -50,3 +52,5 @@ function listTypeTree(T)
println(T)
return _listTypeTree(T, 0)
end

end #module
4 changes: 4 additions & 0 deletions ext/WeakDepsPrototypes.jl
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@

# InteractiveUtils.jl
function getCurrentWorkspaceFactors end
function getCurrentWorkspaceVariables end
function listTypeTree end
6 changes: 3 additions & 3 deletions src/IncrementalInference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ include("Deprecated.jl")

exportimg(pl) = error("Please do `using Gadfly` to allow image export.")
function __init__()
@require InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240" include(
"services/RequireInteractiveUtils.jl",
)
# @require InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240" include(
# "services/RequireInteractiveUtils.jl",
# )
@require Gadfly = "c91e804a-d5a3-530f-b6f0-dfbca275c004" include(
"services/EmbeddedPlottingUtils.jl",
)
Expand Down

0 comments on commit 0108762

Please sign in to comment.