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.


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

2021-11-08 Thread rickhg12hs
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.


[sage-support] trouble displaying 3D graphics

2021-11-08 Thread John Cremona
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/CAD0p0K5YZvB92P1LdwLh0aDpZW_0F8pv4wP0yndC0%3DHJNSaE0w%40mail.gmail.com.