Re: [sage-devel] Jupyter Notebook requires Javascript

2022-05-09 Thread Vincent Delecroix

Dear Phiho,

Please post your question on sage-support mailing list or the
forum  https://ask.sagemath.org/questions/. The sage-devel
mailing list is, as its name suggests, about sage development.

Best
Vincent

Le 10/05/2022 à 07:28, ph h a écrit :

Dear All,

This does not seem to work with IE on Windows Server 2019 Version 1809?

These steps were followed:

1.

Click Tools > Internet Options.

2.

Click the Security tab > Custom Level.

3.

In the Scripting section, click Enable for Active Scripting.

4.

In the dialog box that displays, click Yes.

How can Chrome be used by Jupyter Notebook at start up?


Thank you for your help.

Regards,

phiho

[image: JupyterNotebookRequiresJavaScript.jpg]



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


Re: [sage-devel] Factoring for Fun and Profit

2022-05-09 Thread ph h
  Hi,

>  running sage from a symlink is something that should be supported

Absolutely, yes.

In a hurry she forgot to mention that :

SELF=$(cd `dirname $0` ; pwd)/`basename $0`

is for the links from within $SAGE_ROOT only, of course any link from
outside would need to be resolved with 'resolvelinks'.
Unless this 'readlink.py' works on all platforms that 'sage' supports:


#!/usr/bin/python
import sys, os

thispath=sys.argv[1]

if os.path.islink( thispath  ):
 thispath  =os.readlink( thispath  )
else:
 thispath  =os.path.abspath( thispath  )

print( thispath  )


and in top level 'sage', it is embedded:

readlink() { cat << READLINK
import sys, os
thispath="$0"

if os.path.islink(thispath):
thispath=os.readlink(thispath)
else:
thispath=os.path.abspath(thispath)

print(thispath)

READLINK
}

SELF=`readlink | python3`

and exported:

export READLINKPY=$SAGE_ROOT/readlink.py

in 'sage.src.bin.sage':

SELF=`$READLINKPY "${0}"`

In 'sage.src.bin.sage-env':

DOT_SAGE=`$READLINKPY "$HOME/.sage"
nodeenv_activate=`$READLINKPY "$nodeenv_activate"`

Is 'resolvelinks' better than Python 'os.readlink()'? Are there any issues
with  the latter?
Would it be nice if 'Sage' has more Python code?

Regards,

phiho


On Wed, May 4, 2022 at 8:15 AM Michael Orlitzky 
wrote:

> On Wed, 2022-05-04 at 01:56 -0400, ph h wrote:
> > Hi,
> >
> > > Sadly, readlink is not a POSIX standard utility; otherwise we would
> > > already be using it in place of resolvelinks().
> >
> > In that case, please try this:
> >
> > #SELF=$(readlink -f $0)
> > SELF=$(cd `dirname $0` ; pwd)/`basename $0`
> >
>
> That will fail if $0 is a symlink, because `dirname $0` will get the
> directory that contains the symlink itself and not its target.
>
> Our installation instructions suggest creating such a symlink:
>
>   https://doc.sagemath.org/html/en/installation/source.html
>
> I don't have much nice to say about that installation procedure, but
> running sage from a symlink is something that should be supported
> regardless of how it was installed.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/c4295d4a6af9e3b69c72b4f4ba425325d52e5634.camel%40orlitzky.com
> .
>

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


[sage-devel] Re: difference between PermutationGroup.has_element and PermutationGroup.__contains__

2022-05-09 Thread 'Martin R' via sage-devel
Exactly this is what I meant with "alias", and why I think that its 
documentation is misleading, if not wrong.  I just checked, has_element is 
not used in the sage library at all.  I thus propose to deprecate it.

On Monday, 9 May 2022 at 20:17:09 UTC+2 davida...@gmail.com wrote:

> As you noticed, the difference between these two methods is very thin. The 
> special method "__contains__" is necessary because it is called whenever 
> the keyword "in" is used. I think that the code could have been simplified 
> to:
>
> {{{
> def __contains__(self, item):
> """
> Return whether ``item`` is an element of the group.
> ...
>
> has_element = __contains__
> }}}
>
> Why wasn't it done like this before? I don't know. Is there a better 
> practice? I don't know.
>
> What I know is that if you implement a new structure following the 
> Parent/Element framework (for example:
>
> https://doc.sagemath.org/html/en/thematic_tutorials/coercion_and_categories.html),
>  
> the __contains__ method should be already available right out of the box.
>
>
> Le lundi 9 mai 2022 à 03:35:42 UTC-4, axio...@yahoo.de a écrit :
>
>> I just found
>> {{{
>> def __contains__(self, item):
>> """
>> Return whether ``item`` is an element of the group.
>> ...
>>
>> def has_element(self, item):
>> """
>> Returns boolean value of ``item in self`` - however *ignores*
>> parentage.
>> ...
>> """
>> return item in self
>> }}}
>>
>> Isn't has_element just an alias of __contains__?
>>
>> Martin
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/4a457e4f-c3cb-4f4e-a19e-4595d7b51d71n%40googlegroups.com.


[sage-devel] Re: difference between PermutationGroup.has_element and PermutationGroup.__contains__

2022-05-09 Thread davida...@gmail.com
As you noticed, the difference between these two methods is very thin. The 
special method "__contains__" is necessary because it is called whenever 
the keyword "in" is used. I think that the code could have been simplified 
to:

{{{
def __contains__(self, item):
"""
Return whether ``item`` is an element of the group.
...

has_element = __contains__
}}}

Why wasn't it done like this before? I don't know. Is there a better 
practice? I don't know.

What I know is that if you implement a new structure following the 
Parent/Element framework (for example:
https://doc.sagemath.org/html/en/thematic_tutorials/coercion_and_categories.html),
 
the __contains__ method should be already available right out of the box.


Le lundi 9 mai 2022 à 03:35:42 UTC-4, axio...@yahoo.de a écrit :

> I just found
> {{{
> def __contains__(self, item):
> """
> Return whether ``item`` is an element of the group.
> ...
>
> def has_element(self, item):
> """
> Returns boolean value of ``item in self`` - however *ignores*
> parentage.
> ...
> """
> return item in self
> }}}
>
> Isn't has_element just an alias of __contains__?
>
> Martin
>

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


[sage-devel] Re: can no longer push to trac from ubuntu 22.04

2022-05-09 Thread Matthias Koeppe
On Monday, May 9, 2022 at 8:43:41 AM UTC-7 Samuel Lelievre wrote:

> Note that one can send a merge request against the
> SageMath repository mirrored at GitLab.com.
> The mechanism to sync that repo with Trac is still
> active and maintained (and hopefully backed up
> and documented some place?)
>

Documenting it is https://trac.sagemath.org/ticket/33687 -- which needs 
help by people who know something about this workflow.

 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/b84ce43b-3e5a-4429-ba0c-102afe047fc3n%40googlegroups.com.


Re: [sage-devel] The SageMath developer map needs your (updated) information

2022-05-09 Thread Matthias Koeppe
There's no policy AFAIK, but I think there's no point in updating their 
affiliation/location after their last contribution to Sage.



On Monday, May 9, 2022 at 12:59:29 AM UTC-7 David Roe wrote:

> For former contributors who are no longer active, do we have a policy 
> about saying their current institution/company versus where they were when 
> they were contributing to Sage?
> David
>
> On Mon, May 9, 2022 at 3:51 AM Dima Pasechnik  wrote:
>
>> On Sun, May 8, 2022 at 9:51 PM Matthias Koeppe  
>> wrote:
>> >
>> > https://www.sagemath.org/development-map.html
>> >
>> > To add yourself or to update your information: edit 
>> https://github.com/sagemath/website/blob/master/conf/contributors.xml 
>> and send a pull request
>>
>> there are lots of  `http:` URLs there which should become `https:`
>> Also, some contributors don't have their trac logins mentioned.
>> >
>> >
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google 
>> Groups "sage-devel" group.
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an email to sage-devel+...@googlegroups.com.
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-devel/019ca0a8-5d4c-45d2-8505-1a548bbe98een%40googlegroups.com
>> .
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "sage-devel" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to sage-devel+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-devel/CAAWYfq1b0j6t-Z0cR8bBzv7CDK8bGwvXooSeqe7SLjTSZdu_NQ%40mail.gmail.com
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/e4c8c9bb-12cf-4ae7-b650-ccb83c0de578n%40googlegroups.com.


Re: [sage-devel] The SageMath developer map needs your (updated) information

2022-05-09 Thread Vincent Delecroix

It would be cool to have map locators for the quadruple

   (person, time, affiliation, trac id)

(no affiliation being an option). That way we could make many
maps out of one. And in particular visualize the evolution of
sage development.

Vincent

Le 09/05/2022 à 09:59, David Roe a écrit :

For former contributors who are no longer active, do we have a policy about
saying their current institution/company versus where they were when they
were contributing to Sage?
David

On Mon, May 9, 2022 at 3:51 AM Dima Pasechnik  wrote:


On Sun, May 8, 2022 at 9:51 PM Matthias Koeppe 
wrote:


https://www.sagemath.org/development-map.html

To add yourself or to update your information: edit

https://github.com/sagemath/website/blob/master/conf/contributors.xml and
send a pull request

there are lots of  `http:` URLs there which should become `https:`
Also, some contributors don't have their trac logins mentioned.





--
You received this message because you are subscribed to the Google

Groups "sage-devel" group.

To unsubscribe from this group and stop receiving emails from it, send

an email to sage-devel+unsubscr...@googlegroups.com.

To view this discussion on the web visit

https://groups.google.com/d/msgid/sage-devel/019ca0a8-5d4c-45d2-8505-1a548bbe98een%40googlegroups.com
.

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





--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/b044b5a2-c564-5db4-1e5b-4c851313b4ed%40gmail.com.


[sage-devel] Re: can no longer push to trac from ubuntu 22.04

2022-05-09 Thread Samuel Lelievre
2022-05-08 21:59:35 UTC, Tobias:
>
> Given the recent issues with the git repo at trac,
> should we allow pushes to the github mirror
> and sync them back to trac using e.g.
> https://github.com/trac-hacks/trac-github?
>
> Would also simplify the contribution guide, since it's
> easier to push to github than setting up trac using
> ssh etc. (Also the github server is quicker than the
> trac server)

Hi Tobias,

That would be wonderful. It was once the case
thanks to the "sageb0t" mechanism, see some
discussions on sage-devel:

https://groups.google.com/g/sage-devel/search?q=sageb0t

Sadly, that mechanism broke at some point,
and it seems nobody has any backup of the script
that was in charge of the sync. I remember reading
that it was just a few hundred lines of code and
it should be easy to write from scratch again, but
nobody with the relevant skills has done that yet.

Note that one can send a merge request against the
SageMath repository mirrored at GitLab.com.
The mechanism to sync that repo with Trac is still
active and maintained (and hopefully backed up
and documented some place?), so until someone
with the right skills finds the time and energy
to set the GitHub link again, you may want to try
the GitLab route.

All the best!  --Samuel

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/2d0feb44-f3e9-48ad-bab0-e25fc9111989n%40googlegroups.com.


Re: [sage-devel] The SageMath developer map needs your (updated) information

2022-05-09 Thread David Roe
For former contributors who are no longer active, do we have a policy about
saying their current institution/company versus where they were when they
were contributing to Sage?
David

On Mon, May 9, 2022 at 3:51 AM Dima Pasechnik  wrote:

> On Sun, May 8, 2022 at 9:51 PM Matthias Koeppe 
> wrote:
> >
> > https://www.sagemath.org/development-map.html
> >
> > To add yourself or to update your information: edit
> https://github.com/sagemath/website/blob/master/conf/contributors.xml and
> send a pull request
>
> there are lots of  `http:` URLs there which should become `https:`
> Also, some contributors don't have their trac logins mentioned.
> >
> >
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "sage-devel" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to sage-devel+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/019ca0a8-5d4c-45d2-8505-1a548bbe98een%40googlegroups.com
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/CAAWYfq1b0j6t-Z0cR8bBzv7CDK8bGwvXooSeqe7SLjTSZdu_NQ%40mail.gmail.com
> .
>

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


Re: [sage-devel] The SageMath developer map needs your (updated) information

2022-05-09 Thread Dima Pasechnik
On Sun, May 8, 2022 at 9:51 PM Matthias Koeppe  wrote:
>
> https://www.sagemath.org/development-map.html
>
> To add yourself or to update your information: edit 
> https://github.com/sagemath/website/blob/master/conf/contributors.xml and 
> send a pull request

there are lots of  `http:` URLs there which should become `https:`
Also, some contributors don't have their trac logins mentioned.
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/019ca0a8-5d4c-45d2-8505-1a548bbe98een%40googlegroups.com.

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


[sage-devel] difference between PermutationGroup.has_element and PermutationGroup.__contains__

2022-05-09 Thread 'Martin R' via sage-devel
I just found
{{{
def __contains__(self, item):
"""
Return whether ``item`` is an element of the group.
...

def has_element(self, item):
"""
Returns boolean value of ``item in self`` - however *ignores*
parentage.
...
"""
return item in self
}}}

Isn't has_element just an alias of __contains__?

Martin

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/37f06987-86c3-4401-93f6-aae383d0ebban%40googlegroups.com.