Whitelisting OEIS.

17 views
Skip to first unread message

peter....@gmail.com

unread,
May 5, 2024, 4:06:25 AMMay 5
to sage-cell
Hi!

I request whitelisting the OEIS.

The OEIS is a safe place to store programs because the inclusion of a program
undergoes a review process.

But OEIS is not just a safe place to store programs, it's a natural place to store
a sequence generating script where the sequence is searched for. Many programs
in various languages are already stored there, making it a crucial resource for
many users.

I'll give an example. Currently, you can do the following:

load('https://raw.githubusercontent.com/PeterLuschny/BinaryQuadraticForms/main/BinaryQF.sage')
Q = binaryQF([1, 13, -9])
print(Q.represented_positives(2750, 'prime'))

In the future, it could look like this:

load('https://oeis.org/A243701/A243701.sage.txt')
Q = binaryQF([1, 13, -9])
print(Q.represented_positives(2750, 'prime'))

But there is one obstacle:
    Programs are saved on OEIS as text files and always have the suffix ".txt", 
regardless of what programming language it is.

Question:
    Can you change Sage's "load" mechanism so that the above form is also valid?

Peter

Andrey Novoseltsev

unread,
May 12, 2024, 12:40:01 PMMay 12
to sage-cell
Hi Peter!

OEIS is already whitelisted.

As far as allowing to load Python code from files with txt extension - you can ask Sage developers to do it and then it will start eventually work for SageMathCell too. But if it is a crucial feature to load scripts from OEIS, wouldn't it make more sense to ask them to allow arbitrary extensions, not just txt???

Best regards,
Andrey
Reply all
Reply to author
Forward
0 new messages