require doesn't bring PyPlot into the namespace of your module. Try Main.PyPlot.plot([1:10]).
--Tim
On Tuesday, September 02, 2014 03:04:39 AM Sheehan Olver wrote:
> I'm trying to lazily include PyPlot in a module. I tried the following
> code:
>
> function foo()
> require("PyPlot")
> PyPlot.plot([1:10])
> end
>
>
> This works when its evaluated in the REPL, but not when included in a
> package. Is there a methodology for doing this?
