how to set JULIA_COPY_STACKS=1 in jupyter?
Closed this issue · 2 comments
yummy527 commented
When runing in jupyter the code below,
using Taro
Taro.init()
Taro.readxl("result.xls")
Erro occurs.
using Taro
Taro.init()
Taro.readxl("result.xls")
┌ Warning: JavaCall needs the environment variable `JULIA_COPY_STACKS` to be `1` or `yes`.
│ Calling the JVM may result in undefined behavior.
└ @ JavaCall /home/wangxl/.julia/packages/JavaCall/tjlYt/src/JavaCall.jl:53
JavaCall.JavaCallError("Either the environmental variable JULIA_COPY_STACKS must be 1 OR JavaCall must be used on the root Task.")
Stacktrace:
[1] assertroottask_or_goodenv
@ ~/.julia/packages/JavaCall/tjlYt/src/jvm.jl:236 [inlined]
[2] _init(opts::Vector{String})
@ JavaCall ~/.julia/packages/JavaCall/tjlYt/src/jvm.jl:285
[3] init()
@ JavaCall ~/.julia/packages/JavaCall/tjlYt/src/jvm.jl:277
[4] init()
@ Taro ~/.julia/packages/Taro/7MUCw/src/Taro.jl:21
[5] top-level scope
@ In[1]:2
[6] eval
@ ./boot.jl:373 [inlined]
[7] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
@ Base ./loading.jl:1196
mkitti commented
I answered the question here:
aviks/Taro.jl#67 (comment)
Please mention related issues when you cross post.
yummy527 commented
I answered the question here: aviks/Taro.jl#67 (comment)
Please mention related issues when you cross post.
Thanks!