Skip to content

Commit 9b10fa9

Browse files
authored
Load InteractiveUtils from the IJulia namespace in src/kernel.jl. (#951)
1 parent 4fd955a commit 9b10fa9

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "IJulia"
22
uuid = "7073ff75-c697-5162-941a-fcdaad2a7d2a"
3-
version = "1.21.3"
3+
version = "1.21.4"
44

55
[deps]
66
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"

src/IJulia.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ import Random
4141
using Base64: Base64EncodePipe
4242
import REPL
4343

44+
# InteractiveUtils is not used inside IJulia, but loaded in src/kernel.jl
45+
# and this import makes it possible to load InteractiveUtils from the IJulia namespace
46+
import InteractiveUtils
47+
4448
const depfile = joinpath(dirname(@__FILE__), "..", "deps", "deps.jl")
4549
isfile(depfile) || error("IJulia not properly installed. Please run Pkg.build(\"IJulia\")")
4650
include(depfile) # generated by Pkg.build("IJulia")

src/kernel.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ let
88
end
99
end
1010

11-
using InteractiveUtils
11+
# Load InteractiveUtils from the IJulia namespace since @stdlib might not be in LOAD_PATH
12+
using IJulia.InteractiveUtils
1213

1314
# workaround #60:
1415
if Sys.isapple()

0 commit comments

Comments
 (0)