Re: [sage-support] Re: warning sagemath9 matplotlib plotting bug

2020-01-30 Thread Jean-François Ingenbleek
a better solution, is to remove texlive from your $PATH environment
variable

hum, hum... how to do that?
thanks in advance

Le jeu. 30 janv. 2020 à 15:07, E. Madison Bray  a
écrit :

> On Thursday, January 30, 2020 at 12:36:31 PM UTC+1, E. Madison Bray wrote:
>>
>> On Thursday, January 30, 2020 at 9:27:56 AM UTC+1, Dima Pasechnik wrote:
>>>
>>>
>>>
>>> On Thu, 30 Jan 2020, 08:09 Jean-François Ingenbleek, 
>>> wrote:
>>>
 indeed

 Norton/McAfee/Symantec antivirus or antispyware

 is running.

>>>
>> Wait, which is it?  Both?  All of these have potential to interfere in
>> unusual ways with unsigned open-source software (which many virus scanners
>> attack as "evil").  Having multiple virus scanners installed is highly
>> discouraged as they are likely to interfere even with each other.
>>
>>
>>> and now what should i do?

>>>
>>> Please check that it is indeed the problem.
>>> Disable it and check whether it fixes the issue.
>>>
>>
>> For starters, please only install security software that you're sure you
>> actually need.  For virus scanners, most allow you to configure
>> exceptions.  For example, please create an exception for the SageMath
>> installation directory, as well as any LaTeX distributions you have
>> installed.
>>
>>
>>
>>> My warning is not potentially wrong: a user under windows8 with Mcaffee
 is not able to use sagemath9, no patch known to date, it is a fact that it
 is better to know to not lose his time

>>>
>> Maybe, but no one has confirmed yet what the actual problem is, so it's
>> not helpful to make broad pronouncements that may not apply to most users.
>> I've seen at most 2 other reports of this issue so it clearly isn't just
>> you, but please let the software developers make pronouncements like this
>> if/when we have full information.
>>
>>
>>
>>> it is a wonder in itself that 8.9 worked with Mcaffee installed and
>>> running.
>>>
>>
>> It's not always a problem.  I haven't seen too many problems with McAffee
>> interfering with Cygwin programs.  Avast is much worse.  But I haven't done
>> a comprehensive review of how different virus scanners affect Sage/Cygwin.
>> Perhaps I should install them one by one in a VM and see but it's time I
>> don't have.  I would like to have comprehensive instructions for how to add
>> path exceptions for different virus scanners.
>>
>
>
> For those not following the GitHub issue, I managed to reproduce the
> problem:
> https://github.com/sagemath/sage-windows/issues/42#issuecomment-580268035
>
> As far as I can tell it has nothing to do with virus scanners, and instead
> impacts users of the texlive LaTeX distribution for Windows.  I was
> previously using MiKTeX, which for some reason does not exhibit the same
> problem.  A workaround, pending a better solution, is to remove texlive
> from your $PATH environment variable when running Sage.  It shouldn't be
> necessary to do this every time, I don't think.  Just once so that
> matplotlib can regenerate its font cache.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/6b36d0a1-7b12-42c6-9814-fb08bee1167e%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAMCN-R4VEpGMtVrDuVKNLA7fwa%3Df70_MVrwGM-U234x-RMszCw%40mail.gmail.com.


Re: [sage-support] Re: warning sagemath9 matplotlib plotting bug

2020-01-30 Thread E. Madison Bray
On Thursday, January 30, 2020 at 12:36:31 PM UTC+1, E. Madison Bray wrote:
>
> On Thursday, January 30, 2020 at 9:27:56 AM UTC+1, Dima Pasechnik wrote:
>>
>>
>>
>> On Thu, 30 Jan 2020, 08:09 Jean-François Ingenbleek,  
>> wrote:
>>
>>> indeed
>>>
>>> Norton/McAfee/Symantec antivirus or antispyware
>>>
>>> is running.
>>>
>>
> Wait, which is it?  Both?  All of these have potential to interfere in 
> unusual ways with unsigned open-source software (which many virus scanners 
> attack as "evil").  Having multiple virus scanners installed is highly 
> discouraged as they are likely to interfere even with each other.
>  
>
>> and now what should i do?
>>>
>>
>> Please check that it is indeed the problem.
>> Disable it and check whether it fixes the issue.
>>
>
> For starters, please only install security software that you're sure you 
> actually need.  For virus scanners, most allow you to configure 
> exceptions.  For example, please create an exception for the SageMath 
> installation directory, as well as any LaTeX distributions you have 
> installed.
>
>  
>
>> My warning is not potentially wrong: a user under windows8 with Mcaffee 
>>> is not able to use sagemath9, no patch known to date, it is a fact that it 
>>> is better to know to not lose his time
>>>
>>
> Maybe, but no one has confirmed yet what the actual problem is, so it's 
> not helpful to make broad pronouncements that may not apply to most users.  
> I've seen at most 2 other reports of this issue so it clearly isn't just 
> you, but please let the software developers make pronouncements like this 
> if/when we have full information.
>
>  
>
>> it is a wonder in itself that 8.9 worked with Mcaffee installed and 
>> running.
>>
>
> It's not always a problem.  I haven't seen too many problems with McAffee 
> interfering with Cygwin programs.  Avast is much worse.  But I haven't done 
> a comprehensive review of how different virus scanners affect Sage/Cygwin.  
> Perhaps I should install them one by one in a VM and see but it's time I 
> don't have.  I would like to have comprehensive instructions for how to add 
> path exceptions for different virus scanners.
>


For those not following the GitHub issue, I managed to reproduce the 
problem: 
https://github.com/sagemath/sage-windows/issues/42#issuecomment-580268035

As far as I can tell it has nothing to do with virus scanners, and instead 
impacts users of the texlive LaTeX distribution for Windows.  I was 
previously using MiKTeX, which for some reason does not exhibit the same 
problem.  A workaround, pending a better solution, is to remove texlive 
from your $PATH environment variable when running Sage.  It shouldn't be 
necessary to do this every time, I don't think.  Just once so that 
matplotlib can regenerate its font cache. 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/6b36d0a1-7b12-42c6-9814-fb08bee1167e%40googlegroups.com.


Re: [sage-support] Re: warning sagemath9 matplotlib plotting bug

2020-01-30 Thread E. Madison Bray
On Thursday, January 30, 2020 at 9:27:56 AM UTC+1, Dima Pasechnik wrote:
>
>
>
> On Thu, 30 Jan 2020, 08:09 Jean-François Ingenbleek,  > wrote:
>
>> indeed
>>
>> Norton/McAfee/Symantec antivirus or antispyware
>>
>> is running.
>>
>
Wait, which is it?  Both?  All of these have potential to interfere in 
unusual ways with unsigned open-source software (which many virus scanners 
attack as "evil").  Having multiple virus scanners installed is highly 
discouraged as they are likely to interfere even with each other.
 

> and now what should i do?
>>
>
> Please check that it is indeed the problem.
> Disable it and check whether it fixes the issue.
>

For starters, please only install security software that you're sure you 
actually need.  For virus scanners, most allow you to configure 
exceptions.  For example, please create an exception for the SageMath 
installation directory, as well as any LaTeX distributions you have 
installed.

 

> My warning is not potentially wrong: a user under windows8 with Mcaffee is 
>> not able to use sagemath9, no patch known to date, it is a fact that it is 
>> better to know to not lose his time
>>
>
Maybe, but no one has confirmed yet what the actual problem is, so it's not 
helpful to make broad pronouncements that may not apply to most users.  
I've seen at most 2 other reports of this issue so it clearly isn't just 
you, but please let the software developers make pronouncements like this 
if/when we have full information.

 

> it is a wonder in itself that 8.9 worked with Mcaffee installed and 
> running.
>

It's not always a problem.  I haven't seen too many problems with McAffee 
interfering with Cygwin programs.  Avast is much worse.  But I haven't done 
a comprehensive review of how different virus scanners affect Sage/Cygwin.  
Perhaps I should install them one by one in a VM and see but it's time I 
don't have.  I would like to have comprehensive instructions for how to add 
path exceptions for different virus scanners.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/d8a1b17c-0095-49e2-ad01-548b185994d0%40googlegroups.com.


[sage-support] Re: Parallelization of contractions

2020-01-30 Thread Eric Gourgoulhon
Hi,

Le mercredi 29 janvier 2020 08:47:32 UTC+1, Mattia Villani a écrit :
>
> I did as suggested adding the line
>
>
> Parallelism().set(nproc=4)
>
> before the contraction, but it behaves strangely: it works for a short while 
> with 4 processors, then with 3, then with 2 and finally it works for hours 
> with a single processor. 
> It seems that no new packages are distributed between the processors. 
>
>
>

This  behaviour is not so strange: the parallelization is performed on 
pairs of indices and it could that for one pair of indices the computation 
takes much longer time. Since most of the computational time is spent in 
the simplification of symbolic expressions, you could try to use a light 
simplifying function via the method M.set_simplify_function, where M is 
your manifold. The fastest one would be M.set_simplify_function(simplify), 
but it might not be efficient. See
https://doc.sagemath.org/html/en/reference/manifolds/sage/manifolds/manifold.html#sage.manifolds.manifold.TopologicalManifold.set_simplify_function
for examples.

Best wishes,

Eric.
  

> Il giorno mercoledì 22 gennaio 2020 07:43:52 UTC+1, Mattia Villani ha 
> scritto:
>>
>> How to use parallelization on contraction of tensor? Consider the case I 
>> have two successive contraction like this:
>>
>> Tud=etuu['^{ab}']*eamup['^c_b']
>> Tp=Tud['^{ab}']*eamup['^c_a']
>>
>> How con I parallelize it?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/48760cdf-e943-4480-a9c0-30c2208531f8%40googlegroups.com.


Re: [sage-support] Re: warning sagemath9 matplotlib plotting bug

2020-01-30 Thread Dima Pasechnik
On Thu, 30 Jan 2020, 08:09 Jean-François Ingenbleek, 
wrote:

> indeed
>
> Norton/McAfee/Symantec antivirus or antispyware
>
> is running.
>
> and now what should i do?
>

Please check that it is indeed the problem.
Disable it and check whether it fixes the issue.



> My warning is not potentially wrong: a user under windows8 with Mcaffee is
> not able to use sagemath9, no patch known to date, it is a fact that it is
> better to know to not lose his time
>

it is a wonder in itself that 8.9 worked with Mcaffee installed and running.


> thanks for your quick intervention
>
> Le mercredi 29 janvier 2020 14:21:03 UTC+1, Jean-François Ingenbleek a
> écrit :
>>
>> Be careful! Do not go to version 9 if you work under windows8 !!
>>
>> an instruction as simple as
>>
>> plot(x*sin(1/x),x,-2,2,plot_points=500)
>>
>> gives
>>
>> opt/sagemath-9.0/local/lib/python3.7/site-packages/matplotlib/font_manager.py:281:
>>  UserWarning: Matplotlib is building the font cache using fc-list. This may 
>> take a moment.
>>   'Matplotlib is building the font cache using fc-list. '
>>
>>
>>
>>
>>
>> No solution that works on this forum!!
>>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/b82bffc0-34fa-4f4e-82c5-af7b42c06056%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq1CV55iOHGeob-hhLDE5ep41zJ7eAPhWS9_tmjTYm4zHQ%40mail.gmail.com.


[sage-support] Re: warning sagemath9 matplotlib plotting bug

2020-01-30 Thread Jean-François Ingenbleek
indeed

Norton/McAfee/Symantec antivirus or antispyware

is running.

and now what should i do?

My warning is not potentially wrong: a user under windows8 with Mcaffee is 
not able to use sagemath9, no patch known to date, it is a fact that it is 
better to know to not lose his time

thanks for your quick intervention

Le mercredi 29 janvier 2020 14:21:03 UTC+1, Jean-François Ingenbleek a 
écrit :
>
> Be careful! Do not go to version 9 if you work under windows8 !!
>
> an instruction as simple as
>
> plot(x*sin(1/x),x,-2,2,plot_points=500)
>
> gives
>
> opt/sagemath-9.0/local/lib/python3.7/site-packages/matplotlib/font_manager.py:281:
>  UserWarning: Matplotlib is building the font cache using fc-list. This may 
> take a moment.
>   'Matplotlib is building the font cache using fc-list. '
>
>
>
>
>
> No solution that works on this forum!!
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/b82bffc0-34fa-4f4e-82c5-af7b42c06056%40googlegroups.com.