I could solve the main problem - gzip.open doesn't support URLs.
The minor problem, that print on sagecell doesn't accept \n in string to be 
printed, still is open. From the Python 3 documentation 
<https://docs.python.org/3/whatsnew/3.0.html> I read that print("\na\n") 
should be ok, but it gives an error in sagecell.

Ingo Dahn schrieb am Freitag, 24. September 2021 um 16:07:45 UTC+2:

> No, the cells load files from Github, which is whitelisted a.f.a.I.k.
>
> [email protected] schrieb am Freitag, 24. September 2021 um 13:19:39 
> UTC+2:
>
>>
>> A cell cannot download an arbitrary file from the Web. 
>>
>> Is that what the code is trying to do? 
>>
>> On Fri, 24 Sep 2021, Ingo Dahn wrote: 
>>
>> > I converted a notebook with Python 3 kernel, which executed well in 
>> CoCalc, into a web page with SageCells with 
>> > language python.In the converted page, executing the first cell after 
>> the heading "Main Program" throws a 
>> > FileNotFound error when it attempts to load a file from GitHub. 
>> Downloading the file in  Chrome from that URL 
>> > works. (The URL is set in the first cell after the heading "Data Load 
>> Function".) 
>> > Note: As linked Sagecells cannot be automatically executed, all cells 
>> before this cell have to be executed 
>> > before to reproduce the error. 
>> > Another (minor) error, which did not occur in CoCalc is, that print 
>> throws an error reporting a premature end 
>> > of line when the string to be printed conatins \n. 
>> > 
>> > -- 
>> > You received this message because you are subscribed to the Google 
>> Groups "sage-cell" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an email to 
>> > [email protected]. 
>> > To view this discussion on the web visit 
>> > 
>> https://groups.google.com/d/msgid/sage-cell/7c74a16a-7905-4085-bcff-cfcc9f1737f9n%40googlegroups.com.
>>  
>>
>> > 
>> >
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-cell/bb319dba-0ce1-44e1-9346-ea41f3896ab4n%40googlegroups.com.

Reply via email to