With Images, I was asked to make visualization an entirely separate package 
(now ImageView). The two are tightly-coupled, but it does give users 
flexibility to do image processing on a headless server without paying the 
price of loading graphics. YMMV.

--Tim

On Thursday, March 06, 2014 05:06:22 AM Carlos Becker wrote:
> I am working on a module and I wanted to separate the 'raw' processing part
> from the visualization-related functions.
> I thought of having a base module (eg MyBaseMod) and then a submodule
> (MyBaseMod.Viz) for visualization.
> 
> Since some MyBaseMod.Viz needs PyPlot, I want to be able to use MyBaseMod
> without the visualization part, so that it doesn't need PyPlot.
> However, AFAIK, it is not possible to place MyBaseMod.Viz in a different
> file than MyBaseMod, because it will then replace previously included
> MyBaseMod, right ?
> 
> Is the best option to split it into two modules, rather than submodules?
> 
> Thanks.

Reply via email to