Re: [sage-support] Re: trouble displaying 3D graphics

2021-11-10 Thread John Cremona
As expected, using firefox to navigate to the file in .sage works fine.  
But also, I found that within a notebook the 3d display is just fine on 
chromium too -- complete with rotation and zooming in and out.  That is 
very nice.

On Tuesday, November 9, 2021 at 7:36:43 PM UTC John H Palmieri wrote:

> Is there a way for users to redefine SAGE_TMP (without editing Sage source 
> code) so that these graphics files would be produced elsewhere?
>
> On Tuesday, November 9, 2021 at 4:06:34 AM UTC-8 dim...@gmail.com wrote:
>
>> Right, one can see more of these "Chromium cannot open hidden 
>> files/directories" posts
>> elsewhere, cf. e.g.
>>
>> https://askubuntu.com/questions/1312932/cant-browse-access-hidden-files-and-folders-with-chromium
>>
>> I don't see a good and quick way out, rather than renaming ~/.sage/ to 
>> something without leading '.'.
>>
>>  
>>
>>
>>
>>
>> On Tue, Nov 9, 2021 at 10:23 AM Eric Gourgoulhon  
>> wrote:
>>
>>> Le mardi 9 novembre 2021 à 10:38:29 UTC+1, dim...@gmail.com a écrit :
>>>
 I wonder if 'file:///' must be present in the URL for the script source 
 for Chrome/Chromium to load it.

 This does not seem to be an issue with 'file:///' in the URL since 
>>> Chromium refuses to open any hidden directory while browsing directories in 
>>> the window opened after CTRL+O.  
>>>
>>> -- 
>>>
>> 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...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/sage-support/dd62df2d-4a09-4475-bdf6-62af5a3249e3n%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/0f79e54e-400c-4ee3-9e1d-d49887d88bdan%40googlegroups.com.


Re: [sage-support] Re: trouble displaying 3D graphics

2021-11-09 Thread John H Palmieri
Is there a way for users to redefine SAGE_TMP (without editing Sage source 
code) so that these graphics files would be produced elsewhere?

On Tuesday, November 9, 2021 at 4:06:34 AM UTC-8 dim...@gmail.com wrote:

> Right, one can see more of these "Chromium cannot open hidden 
> files/directories" posts
> elsewhere, cf. e.g.
>
> https://askubuntu.com/questions/1312932/cant-browse-access-hidden-files-and-folders-with-chromium
>
> I don't see a good and quick way out, rather than renaming ~/.sage/ to 
> something without leading '.'.
>
>  
>
>
>
>
> On Tue, Nov 9, 2021 at 10:23 AM Eric Gourgoulhon  
> wrote:
>
>> Le mardi 9 novembre 2021 à 10:38:29 UTC+1, dim...@gmail.com a écrit :
>>
>>> I wonder if 'file:///' must be present in the URL for the script source 
>>> for Chrome/Chromium to load it.
>>>
>>> This does not seem to be an issue with 'file:///' in the URL since 
>> Chromium refuses to open any hidden directory while browsing directories in 
>> the window opened after CTRL+O.  
>>
>> -- 
>>
> 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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-support/dd62df2d-4a09-4475-bdf6-62af5a3249e3n%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/616a26f8-ff7c-48a4-be91-7b2ed52e094en%40googlegroups.com.


Re: [sage-support] Re: trouble displaying 3D graphics

2021-11-09 Thread John Cremona
Thanks for all the replies. I did not respond earlier just because I have 
my Google groups set to daily summary for this group which meant that none 
of the replies even landed in my inbox until today's summary. That's not 
very helpful of Google.

OK, so for the time being I ll use Firefox to see these. I'm sure I will be 
able to find out how to get sage to use that instead of my default browser.

John

On Tuesday, November 9, 2021 at 12:06:34 PM UTC Dima Pasechnik wrote:

> Right, one can see more of these "Chromium cannot open hidden 
> files/directories" posts
> elsewhere, cf. e.g.
>
> https://askubuntu.com/questions/1312932/cant-browse-access-hidden-files-and-folders-with-chromium
>
> I don't see a good and quick way out, rather than renaming ~/.sage/ to 
> something without leading '.'.
>
>  
>
>
>
>
> On Tue, Nov 9, 2021 at 10:23 AM Eric Gourgoulhon  
> wrote:
>
>> Le mardi 9 novembre 2021 à 10:38:29 UTC+1, dim...@gmail.com a écrit :
>>
>>> I wonder if 'file:///' must be present in the URL for the script source 
>>> for Chrome/Chromium to load it.
>>>
>>> This does not seem to be an issue with 'file:///' in the URL since 
>> Chromium refuses to open any hidden directory while browsing directories in 
>> the window opened after CTRL+O.  
>>
>> -- 
>>
> 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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-support/dd62df2d-4a09-4475-bdf6-62af5a3249e3n%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/575b5777-92be-4a4d-8002-a53aca90c06dn%40googlegroups.com.


Re: [sage-support] Re: trouble displaying 3D graphics

2021-11-09 Thread Dima Pasechnik
Right, one can see more of these "Chromium cannot open hidden
files/directories" posts
elsewhere, cf. e.g.
https://askubuntu.com/questions/1312932/cant-browse-access-hidden-files-and-folders-with-chromium

I don't see a good and quick way out, rather than renaming ~/.sage/ to
something without leading '.'.






On Tue, Nov 9, 2021 at 10:23 AM Eric Gourgoulhon 
wrote:

> Le mardi 9 novembre 2021 à 10:38:29 UTC+1, dim...@gmail.com a écrit :
>
>> I wonder if 'file:///' must be present in the URL for the script source
>> for Chrome/Chromium to load it.
>>
>> This does not seem to be an issue with 'file:///' in the URL since
> Chromium refuses to open any hidden directory while browsing directories in
> the window opened after CTRL+O.
>
> --
> 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/dd62df2d-4a09-4475-bdf6-62af5a3249e3n%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/CAAWYfq0XnsT3orpZJEUjBKpO4O3MzDLkNgfB%2BBWqsB4i1DYsWg%40mail.gmail.com.


Re: [sage-support] Re: trouble displaying 3D graphics

2021-11-09 Thread Eric Gourgoulhon
Le mardi 9 novembre 2021 à 10:38:29 UTC+1, dim...@gmail.com a écrit :

> I wonder if 'file:///' must be present in the URL for the script source 
> for Chrome/Chromium to load it.
>
> This does not seem to be an issue with 'file:///' in the URL since 
Chromium refuses to open any hidden directory while browsing directories in 
the window opened after CTRL+O.  

-- 
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/dd62df2d-4a09-4475-bdf6-62af5a3249e3n%40googlegroups.com.


Re: [sage-support] Re: trouble displaying 3D graphics

2021-11-09 Thread Dima Pasechnik
I wonder if 'file:///' must be present in the URL for the script source for
Chrome/Chromium to load it.

On Tue, 9 Nov 2021, 09:16 Eric Gourgoulhon,  wrote:

> I confirm the issue experienced by John with Chromium: on my Ubuntu
> 20.04.3 computer, the implicit_plot3d command from Sage console
> - works out of the box by opening a new tab in Firefox (my default browser)
> - results in a file access error with Chromium, after having selected the
> latter by
>   sage: sage.misc.viewer.viewer.browser('chromium')
>
> It turns out that one cannot even open the directory ~/.sage from Chromium
> with a simple CTRL+O: this results in "Permission denied", while the same
> CTRL+O works fine with Firefox. Actually, no hidden directory can be opened
> from Chromium. So this is certainly a configuration issue on the Chromium
> side.
>
> Eric.
>
> Le lundi 8 novembre 2021 à 12:25:24 UTC+1, John Cremona a écrit :
>
>> I don't often use 3D graphics, but when I run implicitplot3d() I get
>> a file permissions error (on ubuntu 20.04):
>>
>> # example from the docstring
>> sage: var('x,y,z')
>> (x, y, z)
>> sage: implicit_plot3d(x^2+y^2+z^2==4, (x,-3,3), (y,-3,3), (z,-3,3))
>> Launched html viewer for Graphics3d Object
>>
>> Over in my browser (chromium-browser) I see the error message "Access
>> to the file was deniedThe file at
>> file:///home/john/.sage/temp/john-Latitude-E5470/2250012/tmp_x5e1jfy0.html
>>
>> is not readable. It may have been removed, moved or file permissions
>> may be preventing access." I changed the permissions on .sage and
>> everything under it to a+rx and reloaded, with no change. I deleted
>> all of ~/.sage and restarted sage and reran the commands, but the same
>> happened.
>>
>> I can view other html files in my home directory using the browser.
>>
>> What should I do?
>>
>> John
>>
> --
> 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/0f2b339b-f6e9-4b84-b3b3-7fcfdcbe9e83n%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/CAAWYfq0Fi_CmFk3nycSe%3D9OG-27eK3Jki14spqoNbs15WUmjxA%40mail.gmail.com.


Re: [sage-support] Re: trouble displaying 3D graphics

2021-11-08 Thread Dima Pasechnik
On Mon, Nov 8, 2021 at 7:15 PM Dima Pasechnik  wrote:

>
>
> On Mon, Nov 8, 2021 at 6:40 PM Dima Pasechnik  wrote:
>
>>
>>
>> On Mon, Nov 8, 2021 at 6:35 PM Dima Pasechnik  wrote:
>>
>>> I cannot  view the file generated by these commands (on latest Sage
>>> beta) in a new Chrome, it just displays blank screen.
>>> Here is the file: https://users.ox.ac.uk/~coml0531/tmp/t.html
>>>
>>
>> oops, it's silly of me to assume it would work without a correct
>> three.js.min link in the body.
>>
>
> fixed now, this way it works in Firefox as well as in Chrome.
> Perhaps it has something to do with how the interaction of html/js works
> in Sage.
> Upon being posted to a proper http server, it works.
> Without it, less so.
>
> It works in Jupyter, i.e. if you start Sage as ./sage -n
> and evaluate a cell with lines
>
> var('x,y,z')
> implicit_plot3d(x^2+y^2+z^2==4, (x,-3,3), (y,-3,3), (z,-3,3))
>
> you get the picture all right.
>

it turns out it works in Firefox from terminal, too - I just needed to
restart it, as it was updated... Duh.


>
>
>>
>>
>>>
>>>
>>> On Mon, Nov 8, 2021 at 6:13 PM rickhg12hs  wrote:
>>>
 After
 ```
 sage.misc.viewer.viewer.browser('firefox')
 ```
 ... do you experience the same behavior?

 On Monday, November 8, 2021 at 12:25:24 PM UTC+1 John Cremona wrote:

> I don't often use 3D graphics, but when I run implicitplot3d() I get
> a file permissions error (on ubuntu 20.04):
>
> # example from the docstring
> sage: var('x,y,z')
> (x, y, z)
> sage: implicit_plot3d(x^2+y^2+z^2==4, (x,-3,3), (y,-3,3), (z,-3,3))
> Launched html viewer for Graphics3d Object
>
> Over in my browser (chromium-browser) I see the error message "Access
> to the file was deniedThe file at
> file:///home/john/.sage/temp/john-Latitude-E5470/2250012/tmp_x5e1jfy0.html
>
> is not readable. It may have been removed, moved or file permissions
> may be preventing access." I changed the permissions on .sage and
> everything under it to a+rx and reloaded, with no change. I deleted
> all of ~/.sage and restarted sage and reran the commands, but the same
> happened.
>
> I can view other html files in my home directory using the browser.
>
> What should I do?
>
> John
>
 --
 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/a1f134eb-76b2-41b3-8715-2021a5323349n%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/CAAWYfq38czoDwdbFK3H-NSd_Yk7W3%3Da2Em7VgVRN5ecbCU5pCA%40mail.gmail.com.


Re: [sage-support] Re: trouble displaying 3D graphics

2021-11-08 Thread Dima Pasechnik
On Mon, Nov 8, 2021 at 6:40 PM Dima Pasechnik  wrote:

>
>
> On Mon, Nov 8, 2021 at 6:35 PM Dima Pasechnik  wrote:
>
>> I cannot  view the file generated by these commands (on latest Sage beta)
>> in a new Chrome, it just displays blank screen.
>> Here is the file: https://users.ox.ac.uk/~coml0531/tmp/t.html
>>
>
> oops, it's silly of me to assume it would work without a correct
> three.js.min link in the body.
>

fixed now, this way it works in Firefox as well as in Chrome.
Perhaps it has something to do with how the interaction of html/js works in
Sage.
Upon being posted to a proper http server, it works.
Without it, less so.

It works in Jupyter, i.e. if you start Sage as ./sage -n
and evaluate a cell with lines

var('x,y,z')
implicit_plot3d(x^2+y^2+z^2==4, (x,-3,3), (y,-3,3), (z,-3,3))

you get the picture all right.



>
>
>>
>>
>> On Mon, Nov 8, 2021 at 6:13 PM rickhg12hs  wrote:
>>
>>> After
>>> ```
>>> sage.misc.viewer.viewer.browser('firefox')
>>> ```
>>> ... do you experience the same behavior?
>>>
>>> On Monday, November 8, 2021 at 12:25:24 PM UTC+1 John Cremona wrote:
>>>
 I don't often use 3D graphics, but when I run implicitplot3d() I get
 a file permissions error (on ubuntu 20.04):

 # example from the docstring
 sage: var('x,y,z')
 (x, y, z)
 sage: implicit_plot3d(x^2+y^2+z^2==4, (x,-3,3), (y,-3,3), (z,-3,3))
 Launched html viewer for Graphics3d Object

 Over in my browser (chromium-browser) I see the error message "Access
 to the file was deniedThe file at
 file:///home/john/.sage/temp/john-Latitude-E5470/2250012/tmp_x5e1jfy0.html

 is not readable. It may have been removed, moved or file permissions
 may be preventing access." I changed the permissions on .sage and
 everything under it to a+rx and reloaded, with no change. I deleted
 all of ~/.sage and restarted sage and reran the commands, but the same
 happened.

 I can view other html files in my home directory using the browser.

 What should I do?

 John

>>> --
>>> 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/a1f134eb-76b2-41b3-8715-2021a5323349n%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/CAAWYfq1UON-jAShyn_Qvh6JjckN3fqHQgrjusKfeCnF4%2BO5awg%40mail.gmail.com.


Re: [sage-support] Re: trouble displaying 3D graphics

2021-11-08 Thread Dima Pasechnik
On Mon, Nov 8, 2021 at 6:35 PM Dima Pasechnik  wrote:

> I cannot  view the file generated by these commands (on latest Sage beta)
> in a new Chrome, it just displays blank screen.
> Here is the file: https://users.ox.ac.uk/~coml0531/tmp/t.html
>

oops, it's silly of me to assume it would work without a correct
three.js.min link in the body.


>
>
> On Mon, Nov 8, 2021 at 6:13 PM rickhg12hs  wrote:
>
>> After
>> ```
>> sage.misc.viewer.viewer.browser('firefox')
>> ```
>> ... do you experience the same behavior?
>>
>> On Monday, November 8, 2021 at 12:25:24 PM UTC+1 John Cremona wrote:
>>
>>> I don't often use 3D graphics, but when I run implicitplot3d() I get
>>> a file permissions error (on ubuntu 20.04):
>>>
>>> # example from the docstring
>>> sage: var('x,y,z')
>>> (x, y, z)
>>> sage: implicit_plot3d(x^2+y^2+z^2==4, (x,-3,3), (y,-3,3), (z,-3,3))
>>> Launched html viewer for Graphics3d Object
>>>
>>> Over in my browser (chromium-browser) I see the error message "Access
>>> to the file was deniedThe file at
>>> file:///home/john/.sage/temp/john-Latitude-E5470/2250012/tmp_x5e1jfy0.html
>>>
>>> is not readable. It may have been removed, moved or file permissions
>>> may be preventing access." I changed the permissions on .sage and
>>> everything under it to a+rx and reloaded, with no change. I deleted
>>> all of ~/.sage and restarted sage and reran the commands, but the same
>>> happened.
>>>
>>> I can view other html files in my home directory using the browser.
>>>
>>> What should I do?
>>>
>>> John
>>>
>> --
>> 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/a1f134eb-76b2-41b3-8715-2021a5323349n%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/CAAWYfq0ALAyeH4JwJ1Yvb5yPAUMZMtFgCv%2BWB3%2BCXV9E9P5PYg%40mail.gmail.com.


Re: [sage-support] Re: trouble displaying 3D graphics

2021-11-08 Thread Dima Pasechnik
I cannot  view the file generated by these commands (on latest Sage beta)
in a new Chrome, it just displays blank screen.
Here is the file: https://users.ox.ac.uk/~coml0531/tmp/t.html



On Mon, Nov 8, 2021 at 6:13 PM rickhg12hs  wrote:

> After
> ```
> sage.misc.viewer.viewer.browser('firefox')
> ```
> ... do you experience the same behavior?
>
> On Monday, November 8, 2021 at 12:25:24 PM UTC+1 John Cremona wrote:
>
>> I don't often use 3D graphics, but when I run implicitplot3d() I get
>> a file permissions error (on ubuntu 20.04):
>>
>> # example from the docstring
>> sage: var('x,y,z')
>> (x, y, z)
>> sage: implicit_plot3d(x^2+y^2+z^2==4, (x,-3,3), (y,-3,3), (z,-3,3))
>> Launched html viewer for Graphics3d Object
>>
>> Over in my browser (chromium-browser) I see the error message "Access
>> to the file was deniedThe file at
>> file:///home/john/.sage/temp/john-Latitude-E5470/2250012/tmp_x5e1jfy0.html
>>
>> is not readable. It may have been removed, moved or file permissions
>> may be preventing access." I changed the permissions on .sage and
>> everything under it to a+rx and reloaded, with no change. I deleted
>> all of ~/.sage and restarted sage and reran the commands, but the same
>> happened.
>>
>> I can view other html files in my home directory using the browser.
>>
>> What should I do?
>>
>> John
>>
> --
> 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/a1f134eb-76b2-41b3-8715-2021a5323349n%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/CAAWYfq14s9O7s53_gt1S%2BMgJp-D6PA1bbJi%2BZ1t6594ZKwuanQ%40mail.gmail.com.