I’ve used the following *hack* to do a similar thing:
function plotfunc(args...) isdefined(:Gadfly) || eval(Expr(:using, :Gadfly)) println("do things...") end Hope that helps. Perhaps there’s a more elegant way to do this though? — Mike
I’ve used the following *hack* to do a similar thing:
function plotfunc(args...) isdefined(:Gadfly) || eval(Expr(:using, :Gadfly)) println("do things...") end Hope that helps. Perhaps there’s a more elegant way to do this though? — Mike