-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
The following code
begin
using BSON
using DataFrames
using DrWatson
b = DataFrame(v = [1,2],l = ["a", "b"])
DrWatson.save("./test.bson", Dict(:b=>b))
BSON.load("./test.bson")
endfails in Pluto notebook with
UndefVarError: DataFrames not defined
(::BSON.var"#29#30")(::Module, ::String)@extensions.jl:20
BottomRF@reduce.jl:81[inlined]
_foldl_impl(::Base.BottomRF{BSON.var"#29#30"}, ::Module, ::Vector{Any})@reduce.jl:58
foldl_impl@reduce.jl:48[inlined]
mapfoldl_impl@reduce.jl:44[inlined]
_mapreduce_dim@reducedim.jl:315[inlined]
#mapreduce#[email protected]:310[inlined]
#reduce#[email protected]:359[inlined]
resolve(::Vector{Any})@extensions.jl:20
(::BSON.var"#33#34")(::BSON.BSONDict)@extensions.jl:53
_raise_recursive(::BSON.BSONDict, ::IdDict{Any, Any})@read.jl:79
raise_recursive(::BSON.BSONDict, ::IdDict{Any, Any})@read.jl:89
(::BSON.var"#43#44")(::BSON.BSONDict, ::IdDict{Any, Any})@extensions.jl:138
raise_recursive(::BSON.BSONDict, ::IdDict{Any, Any})@read.jl:88
(::BSON.var"#18#20"{IdDict{Any, Any}})(::BSON.BSONDict)@read.jl:82
applychildren!(::BSON.var"#18#20"{IdDict{Any, Any}}, ::BSON.BSONDict)@BSON.jl:34
_raise_recursive(::BSON.BSONDict, ::IdDict{Any, Any})@read.jl:82
raise_recursive(::BSON.BSONDict, ::IdDict{Any, Any})@read.jl:89
raise_recursive@read.jl:99[inlined]
load(::String)@read.jl:104
top-level scope@Local: 9This code runs fine in REPL.
When using JLD2, there is no problem in loading saved files, which makes me think this may be a BSON issue and not Pluto or DataFrames issue.
Metadata
Metadata
Assignees
Labels
No labels