On Tue, May 19, 2009 at 12:18 PM, Brian Granger<ellisonbg....@gmail.com> wrote:
>
>> I agree that there still is a problem.  Before, I didn't think that
>> Sage's matplotlib would need to have different options to even be able
>> to function.
>
> The problem that I am running into is that my
> ~./matplotlib/matplotlibrc sets a backend (macosx) that the Sage
> matplotlib doesn't have.  Thus, when Sage's matplotlib uses this
> setting I see an ImportError.

I want to reopen this thread.

I have a build farm with many (nearly 20) different OS's that all build and test
Sage in parallel.  My home directory on each of those machines is NFS exported
and shared.  I sometimes have tests fail because all these different
Sage's are trying to write to the same $HOME/.matplotlib directory
(for temp files, configuration, etc.).
For Sage itself, I set SAGE_HOME to a fast local scratch disk (on each
machine), which completely solves any contention problems for
*everything* related to Sage temp files, configuration, etc., with the
notable exception of matplotlib.  Thus I would also prefer it if
Sage's matplotlib directory were under SAGE_HOME instead of it being
the default $HOME/.matplotlib.

Thoughts?

William


>> In the mailing list thread, the option was brought up to have the user
>> put in a command in their init.sage file if they wanted a custom Sage
>> initialization for matplotlib.  Setting the MATPLOTLIBRC variable in the
>> init.sage file should work, I think.
>
> Yes, but I don't see this file in my .sage directory.  Where would it be?
>
>> In reality, (I think) the people this affects are the people that have
>> already customized their system install of matplotlib.  Those are the
>> people that (I think) would be capable of writing another command in
>> their init.sage or something to have Sage have a custom matplotlibrc file.
>
> Yes, for the most part I agree with this.  But it is not quite that
> simple.  I still need/want to be able to configure matplotlib for Sage
> and my own install separately.  That means I have to copy my own
> matplotlibrc file into .sage, make edits and set variables in
> init.sage.
>
>> On the other hand, I can see the nice thing about Sage being totally
>> self-contained and not pulling settings from a user's home directory for
>> options.
>
> Yes, I think Sage should "Just Work", even for users that have
> matplotlib installed previously.  This is simple enough to fix, I
> don't see why we wouldn't.  The only thing is that the matplotlibrc
> file needs to be updated anytime that matplotlib itself is updated.
>
> Cheers,
>
> Brian
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to