Thanks Steve,
That is a good solution. I think I will probably end up doing this, or
maybe even a combination of what you and Peter said and instead of throwing
an error if it isn't defined, I will just define it for them.
On Friday, August 22, 2014 12:16:14 PM UTC-4, Steve Kelly wrote:
>
> Wh
What I've been doing is very similar. I leave the plotting package up to
the user, but they are first required to do one of: using PyPlot or using
Gadfly inside their script.
I then have a function similar to yours (named plot(x::MyType), to take
advantage of multiple dispatch) that checks for isd
I am working on a library that defines various types as well as a few
“helper” functions to plot those types with PyPlot.
If I do [import|using] PyPlot at the top level of any file in my package,
PyPlot is loaded when I do [using|import] MyPackage. This makes the startup
time for my package m