Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-19 Thread Kolen Cheung


Thanks all for the comments. In the end I choose this temporary fix 
plot3d(sin(pi 
* sqrt(x**2 + y**2)) / sqrt(x**2 + y**2), (x, -5, 5), (y, -5, 5), 
viewer='threejs', online=True). I prefer to stick to jupyterlab hub and 
using conda to manage it so I didn’t try symlink those from sage in the 
jupyterlab environment.

Regarding the three.js shipped by Arch, may be it didn’t work. But it isn’t 
the original of the problem I’m experiencing since in the browser’s console 
it clearly indicates the three.js cannot be found. I tried to install 
three.js the “jupyter way”, i.e. jupyter labextension install 
jupyter-threejs, but it didn’t work for both jupyterlab and jupyter 
notebook.
​

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-19 Thread slelievre
Mon 2018-11-19 05:50:09 UTC+1, Antonio Rojas:
>
> The three.js version shipped by Arch is too new and not
> supported by Sage. Either use jsmol (which is still the default),
> or use the online version of three.js (viewer='threejs', online=True)
> (with sagemath 8.4-4, in previous versions the online version
> doesn't work either)

See Sage Trac ticket 26718 for upgrading to the latest version of three.js:

https://trac.sagemath.org/ticket/26718

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-18 Thread Antonio Rojas

El domingo, 18 de noviembre de 2018, 4:24:58 (UTC+1), Kolen Cheung escribió:
>
> Currently it's like this: on an ArchLinux machine, install sage through 
> pacman, and install the sagemath kernel to my jupyterlab hub. And then 
> through the jupyterlab-hub I remote it and use the sagemath kernel and 
> typed the above commands.
>
> I'm guessing it requires some widgets to be installed in jupyter for them 
> to work. Since I'm not using the Sage notebook interface but a 
> Jupyterlab-hub instance that has the sagemath kernel installed.
>
> ​
>>>
>>
The three.js version shipped by Arch is too new and not supported by Sage. 
Either use jsmol (which is still the default), or use the online version of 
three.js (viewer='threejs', online=True) (with sagemath 8.4-4, in previous 
versions the online version doesn't work either)

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-18 Thread Enrique Artal
If I am not wrong it works from a terminal and also if one uses either sage 
-m jupyter or sage -n jupyterlab. 
It is possible to use it directly from jupyter or jupyter lab if the 
sagemath kernel is availabe to jupyter, e.g. at 
/usr/local/share/jupyter/kernels or .local/share/jupyter/kernels, and the 
nbextensions (jsmol,mathjax threejs) linked should not interfere your 
jupyter installation.. 
It may be more complicated using jupyterhub; at least for threejs, if I am 
not wrong something must be changed in order to look for the non-found 
files in external places since jupyterhub is not able to find them locally. 
At some point I was able to use it changing some sage files but I do not 
know how to do it properly.

El lunes, 19 de noviembre de 2018, 3:38:49 (UTC+1), Kolen Cheung escribió:
>
> I tried to install threejs by jupyter labextension install jupyter-threejs 
> but it still doesn’t work. I tried on both jupyter and jupyterlab. I didn’t 
> tried symlinking the directories you mentioned though, because I don’t want 
> to mess up the virtual environments created by conda (my jupyterlab 
> environment is created using conda.)
> ​
>

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-18 Thread Enrique Artal
If I am not wrong it works from a terminal and also if one uses either sage 
-m jupyter or sage -n jupyterlab. 
It is possible to use it directly from jupyter or jupyter lab if the 
sagemath kernel is availabe to jupyter, e.g. at 
/usr/local/share/jupyter/kernels or .local/share/jupyter/kernels, and the 
nbextensions (jsmol,mathjax threejs) linked should not interfere your 
jupyter installation.. 
It may be more complicated using jupyterhub; at least for threejs, if I am 
not wrong something must be changed in order to look for the non-found 
files in external places since jupyterhub is not able to find them locally. 
At some point I was able to use it changing some sage files but I do not 
know how to do it properly.

El lunes, 19 de noviembre de 2018, 3:38:49 (UTC+1), Kolen Cheung escribió:
>
> I tried to install threejs by jupyter labextension install jupyter-threejs 
> but it still doesn’t work. I tried on both jupyter and jupyterlab. I didn’t 
> tried symlinking the directories you mentioned though, because I don’t want 
> to mess up the virtual environments created by conda (my jupyterlab 
> environment is created using conda.)
> ​
>

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-18 Thread Kolen Cheung


I tried to install threejs by jupyter labextension install jupyter-threejs 
but it still doesn’t work. I tried on both jupyter and jupyterlab. I didn’t 
tried symlinking the directories you mentioned though, because I don’t want 
to mess up the virtual environments created by conda (my jupyterlab 
environment is created using conda.)
​

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-18 Thread Nils Bruin
It depends a little bit on how you install the sage kernel into your 
jupyter notebook server, but chances are you have to do some extra work to 
install some notebook extensions.

In the sage install, in "/local/share" there are 3 subdirs 
"jsmol, "mathjax", "threejs". These need to be findable as "nbextensions" 
by your jupyter. Having them symlinked in, say, 
/usr/local/share/jupyter/nbextensions should do the trick [if your sage 
kernel lives in .../kernels/sagemath , you would probably want to symlink 
these extensions from .../nbextensions ] 

On Sunday, November 18, 2018 at 2:25:43 PM UTC-8, Kolen Cheung wrote:
>
> sage: y = var('y')
> sage: plot3d(x * y, (x, -1, 1), (y, -1, 1), viewer='threejs')
> Launched html viewer for Graphics3d Object
>
> I didn’t see anything since I’m remote ssh. I tried both ssh -X and ssh -Y 
> but they doesn’t work.
>
> I don’t have a local machine that has a working sage yet. So can’t test 
> that.
>
> Thanks.
> ​
>

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-18 Thread Kolen Cheung


sage: y = var('y')
sage: plot3d(x * y, (x, -1, 1), (y, -1, 1), viewer='threejs')
Launched html viewer for Graphics3d Object

I didn’t see anything since I’m remote ssh. I tried both ssh -X and ssh -Y 
but they doesn’t work.

I don’t have a local machine that has a working sage yet. So can’t test 
that.

Thanks.
​

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-18 Thread Dima Pasechnik
How about Sage in terminal, does 3d plotting work there?

On Sun, Nov 18, 2018 at 7:07 AM Kolen Cheung  wrote:
>
> I have the command line tool. I use `brew cask install sage` and it finishes 
> download without proceeding. It is possible the formula in caskroom need to 
> be updated though.
>
> But the problem is that I can't get it work even on the Linux installation 
> where everything else' fine so far, except plot3d.
>
> Regards,
> Kolen
> On Nov 17, 2018, 10:34 PM -0800, John H Palmieri , 
> wrote:
>
>
>
> On Saturday, November 17, 2018 at 7:24:58 PM UTC-8, Kolen Cheung wrote:
>>
>> I couldn't install sage on macOS Mojave, I'm guessing it isn't compatible 
>> with Mojave yet.
>
>
> My message said that I had installed it on OS X 10.14.1, which is Mojave. You 
> need to have Xcode installed with the command line tools, or at least the 
> command line tools. Try searching the google group sage-devel for information 
> about installing with Mojave.
>
>>
>>
>> Currently it's like this: on an ArchLinux machine, install sage through 
>> pacman, and install the sagemath kernel to my jupyterlab hub. And then 
>> through the jupyterlab-hub I remote it and use the sagemath kernel and typed 
>> the above commands.
>>
>> I'm guessing it requires some widgets to be installed in jupyter for them to 
>> work. Since I'm not using the Sage notebook interface but a Jupyterlab-hub 
>> instance that has the sagemath kernel installed.
>>
>> On Saturday, November 17, 2018 at 7:21:02 PM UTC-8, John H Palmieri wrote:
>>>
>>> This is on OS X? How did you install Sage? (It works for me with Sage built 
>>> from scratch on both OS X 10.13.6 and OS X 10.14.1.)
>>>
>>>   John
>>>
>>>
>>> On Saturday, November 17, 2018 at 5:32:34 PM UTC-8, Kolen Cheung wrote:

 I tried both

 plot3d(sin(pi * sqrt(x**2 + y**2)) / sqrt(x**2 + y**2), (x, -5, 5), (y, 
 -5, 5), viewer='threejs')
 ...
 p1 = sphere(color='red', opacity='.5')
 p2 = sphere((-1,-1,1), color='cyan', opacity='.3')
 p3 = sphere((1,-1,-1), color='yellow', opacity='.7')
 show(p1 + p2 + p3, viewer='threejs')

 Again on both jupyter notebook and jupyterlab, on both Safari and Chrome. 
 Are you sure there isn’t other dependencies?

 I checked the HTML console and found this:

 [Error] Failed to load resource: the server responded with a status of 404 
 (Not Found) (preact.min.js.map, line 0)
 [Error] Failed to load resource: the server responded with a status of 404 
 (Not Found) (index.js.map, line 0)
 [Error] Failed to load resource: the server responded with a status of 404 
 (Not Found) (preact-compat.min.js.map, line 0)

 Are there any jupyter widgets that I should install?
>
> --
> 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 post to this group, send email to sage-support@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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 post to this group, send email to sage-support@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-17 Thread Kolen Cheung
I have the command line tool. I use `brew cask install sage` and it finishes 
download without proceeding. It is possible the formula in caskroom need to be 
updated though.

But the problem is that I can't get it work even on the Linux installation 
where everything else' fine so far, except plot3d.

Regards,
Kolen
On Nov 17, 2018, 10:34 PM -0800, John H Palmieri , 
wrote:
>
>
> On Saturday, November 17, 2018 at 7:24:58 PM UTC-8, Kolen Cheung wrote:
> > I couldn't install sage on macOS Mojave, I'm guessing it isn't compatible 
> > with Mojave yet.
>
> My message said that I had installed it on OS X 10.14.1, which is Mojave. You 
> need to have Xcode installed with the command line tools, or at least the 
> command line tools. Try searching the google group sage-devel for information 
> about installing with Mojave.
>
> >
> > Currently it's like this: on an ArchLinux machine, install sage through 
> > pacman, and install the sagemath kernel to my jupyterlab hub. And then 
> > through the jupyterlab-hub I remote it and use the sagemath kernel and 
> > typed the above commands.
> >
> > I'm guessing it requires some widgets to be installed in jupyter for them 
> > to work. Since I'm not using the Sage notebook interface but a 
> > Jupyterlab-hub instance that has the sagemath kernel installed.
> >
> > On Saturday, November 17, 2018 at 7:21:02 PM UTC-8, John H Palmieri wrote:
> > > This is on OS X? How did you install Sage? (It works for me with Sage 
> > > built from scratch on both OS X 10.13.6 and OS X 10.14.1.)
> > >
> > >   John
> > >
> > >
> > > On Saturday, November 17, 2018 at 5:32:34 PM UTC-8, Kolen Cheung wrote:
> > > > I tried both
> > > > plot3d(sin(pi * sqrt(x**2 + y**2)) / sqrt(x**2 + y**2), (x, -5, 5), (y, 
> > > > -5, 5), viewer='threejs')
> > > > ...
> > > > p1 = sphere(color='red', opacity='.5')
> > > > p2 = sphere((-1,-1,1), color='cyan', opacity='.3')
> > > > p3 = sphere((1,-1,-1), color='yellow', opacity='.7')
> > > > show(p1 + p2 + p3, viewer='threejs')
> > > > Again on both jupyter notebook and jupyterlab, on both Safari and 
> > > > Chrome. Are you sure there isn’t other dependencies?
> > > > I checked the HTML console and found this:
> > > > [Error] Failed to load resource: the server responded with a status of 
> > > > 404 (Not Found) (preact.min.js.map, line 0)
> > > > [Error] Failed to load resource: the server responded with a status of 
> > > > 404 (Not Found) (index.js.map, line 0)
> > > > [Error] Failed to load resource: the server responded with a status of 
> > > > 404 (Not Found) (preact-compat.min.js.map, line 0)
> > > > Are there any jupyter widgets that I should install?
> > > >
> --
> 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 post to this group, send email to sage-support@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-17 Thread John H Palmieri


On Saturday, November 17, 2018 at 7:24:58 PM UTC-8, Kolen Cheung wrote:
>
> I couldn't install sage on macOS Mojave, I'm guessing it isn't compatible 
> with Mojave yet.
>

My message said that I had installed it on OS X 10.14.1, which is Mojave. 
You need to have Xcode installed with the command line tools, or at least 
the command line tools. Try searching the google group sage-devel for 
information about installing with Mojave.
 

>
> Currently it's like this: on an ArchLinux machine, install sage through 
> pacman, and install the sagemath kernel to my jupyterlab hub. And then 
> through the jupyterlab-hub I remote it and use the sagemath kernel and 
> typed the above commands.
>
> I'm guessing it requires some widgets to be installed in jupyter for them 
> to work. Since I'm not using the Sage notebook interface but a 
> Jupyterlab-hub instance that has the sagemath kernel installed.
>
> On Saturday, November 17, 2018 at 7:21:02 PM UTC-8, John H Palmieri wrote:
>>
>> This is on OS X? How did you install Sage? (It works for me with Sage 
>> built from scratch on both OS X 10.13.6 and OS X 10.14.1.)
>>
>>   John
>>
>>
>> On Saturday, November 17, 2018 at 5:32:34 PM UTC-8, Kolen Cheung wrote:
>>>
>>> I tried both
>>>
>>> plot3d(sin(pi * sqrt(x**2 + y**2)) / sqrt(x**2 + y**2), (x, -5, 5), (y, -5, 
>>> 5), viewer='threejs')
>>> ...
>>> p1 = sphere(color='red', opacity='.5')
>>> p2 = sphere((-1,-1,1), color='cyan', opacity='.3')
>>> p3 = sphere((1,-1,-1), color='yellow', opacity='.7')
>>> show(p1 + p2 + p3, viewer='threejs')
>>>
>>> Again on both jupyter notebook and jupyterlab, on both Safari and 
>>> Chrome. Are you sure there isn’t other dependencies?
>>>
>>> I checked the HTML console and found this:
>>>
>>> [Error] Failed to load resource: the server responded with a status of 404 
>>> (Not Found) (preact.min.js.map, line 0)
>>> [Error] Failed to load resource: the server responded with a status of 404 
>>> (Not Found) (index.js.map, line 0)
>>> [Error] Failed to load resource: the server responded with a status of 404 
>>> (Not Found) (preact-compat.min.js.map, line 0)
>>>
>>> Are there any jupyter widgets that I should install?
>>> ​
>>>
>>

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-17 Thread Kolen Cheung
I couldn't install sage on macOS Mojave, I'm guessing it isn't compatible 
with Mojave yet.

Currently it's like this: on an ArchLinux machine, install sage through 
pacman, and install the sagemath kernel to my jupyterlab hub. And then 
through the jupyterlab-hub I remote it and use the sagemath kernel and 
typed the above commands.

I'm guessing it requires some widgets to be installed in jupyter for them 
to work. Since I'm not using the Sage notebook interface but a 
Jupyterlab-hub instance that has the sagemath kernel installed.

On Saturday, November 17, 2018 at 7:21:02 PM UTC-8, John H Palmieri wrote:
>
> This is on OS X? How did you install Sage? (It works for me with Sage 
> built from scratch on both OS X 10.13.6 and OS X 10.14.1.)
>
>   John
>
>
> On Saturday, November 17, 2018 at 5:32:34 PM UTC-8, Kolen Cheung wrote:
>>
>> I tried both
>>
>> plot3d(sin(pi * sqrt(x**2 + y**2)) / sqrt(x**2 + y**2), (x, -5, 5), (y, -5, 
>> 5), viewer='threejs')
>> ...
>> p1 = sphere(color='red', opacity='.5')
>> p2 = sphere((-1,-1,1), color='cyan', opacity='.3')
>> p3 = sphere((1,-1,-1), color='yellow', opacity='.7')
>> show(p1 + p2 + p3, viewer='threejs')
>>
>> Again on both jupyter notebook and jupyterlab, on both Safari and Chrome. 
>> Are you sure there isn’t other dependencies?
>>
>> I checked the HTML console and found this:
>>
>> [Error] Failed to load resource: the server responded with a status of 404 
>> (Not Found) (preact.min.js.map, line 0)
>> [Error] Failed to load resource: the server responded with a status of 404 
>> (Not Found) (index.js.map, line 0)
>> [Error] Failed to load resource: the server responded with a status of 404 
>> (Not Found) (preact-compat.min.js.map, line 0)
>>
>> Are there any jupyter widgets that I should install?
>> ​
>>
>

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-17 Thread John H Palmieri
This is on OS X? How did you install Sage? (It works for me with Sage built 
from scratch on both OS X 10.13.6 and OS X 10.14.1.)

  John


On Saturday, November 17, 2018 at 5:32:34 PM UTC-8, Kolen Cheung wrote:
>
> I tried both
>
> plot3d(sin(pi * sqrt(x**2 + y**2)) / sqrt(x**2 + y**2), (x, -5, 5), (y, -5, 
> 5), viewer='threejs')
> ...
> p1 = sphere(color='red', opacity='.5')
> p2 = sphere((-1,-1,1), color='cyan', opacity='.3')
> p3 = sphere((1,-1,-1), color='yellow', opacity='.7')
> show(p1 + p2 + p3, viewer='threejs')
>
> Again on both jupyter notebook and jupyterlab, on both Safari and Chrome. 
> Are you sure there isn’t other dependencies?
>
> I checked the HTML console and found this:
>
> [Error] Failed to load resource: the server responded with a status of 404 
> (Not Found) (preact.min.js.map, line 0)
> [Error] Failed to load resource: the server responded with a status of 404 
> (Not Found) (index.js.map, line 0)
> [Error] Failed to load resource: the server responded with a status of 404 
> (Not Found) (preact-compat.min.js.map, line 0)
>
> Are there any jupyter widgets that I should install?
> ​
>

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-17 Thread Kolen Cheung


I tried both

plot3d(sin(pi * sqrt(x**2 + y**2)) / sqrt(x**2 + y**2), (x, -5, 5), (y, -5, 5), 
viewer='threejs')
...
p1 = sphere(color='red', opacity='.5')
p2 = sphere((-1,-1,1), color='cyan', opacity='.3')
p3 = sphere((1,-1,-1), color='yellow', opacity='.7')
show(p1 + p2 + p3, viewer='threejs')

Again on both jupyter notebook and jupyterlab, on both Safari and Chrome. 
Are you sure there isn’t other dependencies?

I checked the HTML console and found this:

[Error] Failed to load resource: the server responded with a status of 404 (Not 
Found) (preact.min.js.map, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not 
Found) (index.js.map, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not 
Found) (preact-compat.min.js.map, line 0)

Are there any jupyter widgets that I should install?
​

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-17 Thread Dima Pasechnik
On Sat, Nov 17, 2018 at 11:34 PM Kolen Cheung  wrote:
>
> Hi,
>
> I'm running SageMath 8.4 kernel in jupyterlab and also jupyter notebook. But 
> running `plot3d(x * y, (x, -1, 1), (y, -1, 1))` gives me a blank space. Is 
> there a command I first need to run before it shows? I tried `%matplotlib 
> inline` but it doesn't help.

Have a look at http://doc.sagemath.org/html/en/reference/plot3d/threejs.html

there are several plotting 3d backends available in Sage, you may try
finding one that works in your
setting.http://doc.sagemath.org/html/en/reference/plot3d/index.html#backends


> `plot` works though.
>
> Thanks!
>
> --
> 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 post to this group, send email to sage-support@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] plot3d

2016-10-11 Thread raman kurdi
thanks a lot
On Oct 10, 2016 04:29, "William Stein"  wrote:

> On Sun, Oct 9, 2016 at 12:45 PM, raman kurdi 
> wrote:
> > Hi Sage,
> > I want to draw the function $y^2+z^2=x^3+ax+b$ by sage. Could you  please
> > help me.
> >
>
> https://cloud.sagemath.com/projects/4a5f0542-5873-4eed-
> a85c-a18c706e8bcd/files/support/2016-10-09-175502-3d.sagews
>
> > Raman
> >
> > --
> > 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 post to this group, send email to sage-support@googlegroups.com.
> > Visit this group at https://groups.google.com/group/sage-support.
> > For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> William (http://wstein.org)
>
> --
> 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 post to this group, send email to sage-support@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] plot3d

2016-10-09 Thread William Stein
On Sun, Oct 9, 2016 at 12:45 PM, raman kurdi  wrote:
> Hi Sage,
> I want to draw the function $y^2+z^2=x^3+ax+b$ by sage. Could you  please
> help me.
>

https://cloud.sagemath.com/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/files/support/2016-10-09-175502-3d.sagews

> Raman
>
> --
> 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 post to this group, send email to sage-support@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.



-- 
William (http://wstein.org)

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] plot3d

2016-10-09 Thread raman kurdi
i want to look at this surface and the find the intersection this surface
with a line or a plane
On Sun, Oct 9, 2016 at 4:22 PM, raman kurdi 
wrote:
> I checked it without any result.
>


Can you be much much more specific? What exactly did you type in? What
exactly did you get as output?

> On Sun, Oct 9, 2016 at 3:45 PM, raman kurdi 
> wrote:
>> Hi Sage,
>> I want to draw the function $y^2+z^2=x^3+ax+b$ by sage. Could you  please
>> help me.
>>
>
> Does this help?
> http://doc.sagemath.org/html/en/reference/plot3d/sage/plot/
plot3d/implicit_plot3d.html
>
>> Raman
>>
>> --
>> 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 post to this group, send email to sage-support@googlegroups.com.
>> Visit this group at https://groups.google.com/group/sage-support.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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 post to this group, send email to sage-support@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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 post to this group, send email to sage-support@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.

--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] plot3d

2016-10-09 Thread David Joyner
On Sun, Oct 9, 2016 at 4:22 PM, raman kurdi  wrote:
> I checked it without any result.
>


Can you be much much more specific? What exactly did you type in? What
exactly did you get as output?

> On Sun, Oct 9, 2016 at 3:45 PM, raman kurdi 
> wrote:
>> Hi Sage,
>> I want to draw the function $y^2+z^2=x^3+ax+b$ by sage. Could you  please
>> help me.
>>
>
> Does this help?
> http://doc.sagemath.org/html/en/reference/plot3d/sage/plot/plot3d/implicit_plot3d.html
>
>> Raman
>>
>> --
>> 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 post to this group, send email to sage-support@googlegroups.com.
>> Visit this group at https://groups.google.com/group/sage-support.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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 post to this group, send email to sage-support@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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 post to this group, send email to sage-support@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] plot3d

2016-10-09 Thread raman kurdi
I checked it without any result.
On Sun, Oct 9, 2016 at 3:45 PM, raman kurdi 
wrote:
> Hi Sage,
> I want to draw the function $y^2+z^2=x^3+ax+b$ by sage. Could you  please
> help me.
>

Does this help?
http://doc.sagemath.org/html/en/reference/plot3d/sage/plot/
plot3d/implicit_plot3d.html

> Raman
>
> --
> 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 post to this group, send email to sage-support@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.

--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] plot3d

2016-10-09 Thread David Joyner
On Sun, Oct 9, 2016 at 3:45 PM, raman kurdi  wrote:
> Hi Sage,
> I want to draw the function $y^2+z^2=x^3+ax+b$ by sage. Could you  please
> help me.
>

Does this help?
http://doc.sagemath.org/html/en/reference/plot3d/sage/plot/plot3d/implicit_plot3d.html

> Raman
>
> --
> 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 post to this group, send email to sage-support@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] [plot3d in cloud] show function bug?

2015-07-09 Thread William Stein
Thanks for your report -- please see
https://github.com/sagemathinc/smc/issues/15

On Thu, Jul 9, 2015 at 10:40 AM, fidelbc  wrote:
> Hello everyone,
>
> In cloud.sagemath; is there a bug in the behaviour of the code below?
> P.show() just outputs Graphcs3d Object.
>
> P=point3d([0,0,0])
> P.show()
> |Graphics3d Object
>
> However
>
> P
>
> and
>
> show(P)
>
> do show the plot.
>
> This question came up in [1].
>
> [1]
> http://ask.sagemath.org/question/27281/plotting-3d-points-in-a-certain-way/
>
> Thanks,
> Fidel
>
> --
> 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 post to this group, send email to sage-support@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.



-- 
William (http://wstein.org)

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] plot3d in notebook generates no plot

2010-03-11 Thread Robert Bradshaw

On Mar 11, 2010, at 11:12 AM, Eckhard Kosin wrote:


Am Donnerstag, den 11.03.2010, 10:10 -0800 schrieb Robert Bradshaw:

On Mar 11, 2010, at 7:53 AM, Eckhard Kosin wrote:


Robert,

thanks for the quick answer.

Am Mittwoch, den 10.03.2010, 12:07 -0800 schrieb Robert Bradshaw:

On Mar 10, 2010, at 11:53 AM, Eckhard Kosin wrote:


Hi all,

I just installed Sage and now I'm working through the tutorial.
However, inside notebook I'm unable to generate 3d plots: Issuing
i.e.

x,y = var('x,y')
plot3d(x^2 + y^2, (x,-2,2), (y,-2,2))

only yields a gray square without any plots.  At the right lower
corner
of the square there is a link "Get Image", but clicking on it do  
not

get
the image but jumps the top of the current worksheet (the  
address of

the
link is "http://localhost:8000/home/admin/3/#";).

On the Sage command line plot3d works, a Jmol window pops up  
showing

the
graphic.  Also inside notebook plot3d(..., viewer='tachyon')  
works.


Java (OpenJDK) is installed and enabled in the browser.


Do the demos at http://jmol.sourceforge.net/demo/ work for you?


Only the screenshot examples (still images) work, the interactive
applets show up a gray square only.

I googled around and found that there seems to be a problem with  
Jmol
and OpenJDK, see http://wiki.jmol.org/index.php/Release_Procedures  
and

http://www.mail-archive.com/jmol-us...@lists.sourceforge.net/msg11590.html
and the thread following it.


Well, this solves one issue.

So I install sun-java6 (jre, plugin and where they depend on) and  
now

the interactive applets from the Jmol website work.  But plot3d in a
workbook of Sage notebook only produces a black square with "Jmol"  
in

the lower right corner.


This is what the applet looks like in the "loading" state.


Rightclicking in the square opens the Jmol
menu.  If I click the link "Get Image" (outside the lower right  
corner
of the square) a firefox window pops up and starts loading  
something,

showing the black square (with "Jmol" in the lower left corner) and
some
text "To save this image, you can try right-clicking on the  
image ..."

and keeps loading forever.

But strange:  If I open the tutorial inside a notebook (help ->
Tutorial) the plot3d examples do give the interactive Jmol plots and
the
"Get Image" click pops up a firefox window with a still graphic, but
keeps loading forever, too.

This or similar behaviour has been described on sage-support several
times, but afaIk without solution.  Any new ideas?


No. I remember someone (can't remember who) was going streamline the
jmol <-> notebook interactions a while back, but then he got busy  
with

something else. In particular, having many applets all running at the
same time taxes the browser. Do you still have issues if you make a
new worksheet with a single applet?


It's no a load problem, the issues described occurred  in a newly
created worksheet with this single one plot.  So it seems that plot3d
isn't working inside a worksheet at present :-(.  But why does it
function inside the tutorial?  Strange!


That is strange. I don't have any more ideas at the moment.

- Robert


--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] plot3d in notebook generates no plot

2010-03-11 Thread Eckhard Kosin
Am Donnerstag, den 11.03.2010, 10:10 -0800 schrieb Robert Bradshaw:
> On Mar 11, 2010, at 7:53 AM, Eckhard Kosin wrote:
> 
> > Robert,
> >
> > thanks for the quick answer.
> >
> > Am Mittwoch, den 10.03.2010, 12:07 -0800 schrieb Robert Bradshaw:
> >> On Mar 10, 2010, at 11:53 AM, Eckhard Kosin wrote:
> >>
> >>> Hi all,
> >>>
> >>> I just installed Sage and now I'm working through the tutorial.
> >>> However, inside notebook I'm unable to generate 3d plots: Issuing  
> >>> i.e.
> >>>
> >>> x,y = var('x,y')
> >>> plot3d(x^2 + y^2, (x,-2,2), (y,-2,2))
> >>>
> >>> only yields a gray square without any plots.  At the right lower
> >>> corner
> >>> of the square there is a link "Get Image", but clicking on it do not
> >>> get
> >>> the image but jumps the top of the current worksheet (the address of
> >>> the
> >>> link is "http://localhost:8000/home/admin/3/#";).
> >>>
> >>> On the Sage command line plot3d works, a Jmol window pops up showing
> >>> the
> >>> graphic.  Also inside notebook plot3d(..., viewer='tachyon') works.
> >>>
> >>> Java (OpenJDK) is installed and enabled in the browser.
> >>
> >> Do the demos at http://jmol.sourceforge.net/demo/ work for you?
> >
> > Only the screenshot examples (still images) work, the interactive
> > applets show up a gray square only.
> >
> > I googled around and found that there seems to be a problem with Jmol
> > and OpenJDK, see http://wiki.jmol.org/index.php/Release_Procedures and
> > http://www.mail-archive.com/jmol-us...@lists.sourceforge.net/msg11590.html
> > and the thread following it.
> 
> Well, this solves one issue.
> 
> > So I install sun-java6 (jre, plugin and where they depend on) and now
> > the interactive applets from the Jmol website work.  But plot3d in a
> > workbook of Sage notebook only produces a black square with "Jmol" in
> > the lower right corner.
> 
> This is what the applet looks like in the "loading" state.
> 
> > Rightclicking in the square opens the Jmol
> > menu.  If I click the link "Get Image" (outside the lower right corner
> > of the square) a firefox window pops up and starts loading something,
> > showing the black square (with "Jmol" in the lower left corner) and  
> > some
> > text "To save this image, you can try right-clicking on the image ..."
> > and keeps loading forever.
> >
> > But strange:  If I open the tutorial inside a notebook (help ->
> > Tutorial) the plot3d examples do give the interactive Jmol plots and  
> > the
> > "Get Image" click pops up a firefox window with a still graphic, but
> > keeps loading forever, too.
> >
> > This or similar behaviour has been described on sage-support several
> > times, but afaIk without solution.  Any new ideas?
> 
> No. I remember someone (can't remember who) was going streamline the  
> jmol <-> notebook interactions a while back, but then he got busy with  
> something else. In particular, having many applets all running at the  
> same time taxes the browser. Do you still have issues if you make a  
> new worksheet with a single applet?

It's no a load problem, the issues described occurred  in a newly
created worksheet with this single one plot.  So it seems that plot3d
isn't working inside a worksheet at present :-(.  But why does it
function inside the tutorial?  Strange!

   Thanks

  Eckhard
-- 
  Service für Mathematik und Simulation
  Dr. Eckhard Kosin, selbständiger Diplom-Mathematiker

  Am Nymphenbad 14
D-81245 München, Germany

  Tel.: (+49)(+89) 88 88 479
  Tel.,Fax: (+49)(+89) 835 844
  mailto:e...@mathematik-service-kosin.de
  http://www.mathematik-service-kosin.de

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] plot3d in notebook generates no plot

2010-03-11 Thread Robert Bradshaw

On Mar 11, 2010, at 7:53 AM, Eckhard Kosin wrote:


Robert,

thanks for the quick answer.

Am Mittwoch, den 10.03.2010, 12:07 -0800 schrieb Robert Bradshaw:

On Mar 10, 2010, at 11:53 AM, Eckhard Kosin wrote:


Hi all,

I just installed Sage and now I'm working through the tutorial.
However, inside notebook I'm unable to generate 3d plots: Issuing  
i.e.


x,y = var('x,y')
plot3d(x^2 + y^2, (x,-2,2), (y,-2,2))

only yields a gray square without any plots.  At the right lower
corner
of the square there is a link "Get Image", but clicking on it do not
get
the image but jumps the top of the current worksheet (the address of
the
link is "http://localhost:8000/home/admin/3/#";).

On the Sage command line plot3d works, a Jmol window pops up showing
the
graphic.  Also inside notebook plot3d(..., viewer='tachyon') works.

Java (OpenJDK) is installed and enabled in the browser.


Do the demos at http://jmol.sourceforge.net/demo/ work for you?


Only the screenshot examples (still images) work, the interactive
applets show up a gray square only.

I googled around and found that there seems to be a problem with Jmol
and OpenJDK, see http://wiki.jmol.org/index.php/Release_Procedures and
http://www.mail-archive.com/jmol-us...@lists.sourceforge.net/msg11590.html
and the thread following it.


Well, this solves one issue.


So I install sun-java6 (jre, plugin and where they depend on) and now
the interactive applets from the Jmol website work.  But plot3d in a
workbook of Sage notebook only produces a black square with "Jmol" in
the lower right corner.


This is what the applet looks like in the "loading" state.


Rightclicking in the square opens the Jmol
menu.  If I click the link "Get Image" (outside the lower right corner
of the square) a firefox window pops up and starts loading something,
showing the black square (with "Jmol" in the lower left corner) and  
some

text "To save this image, you can try right-clicking on the image ..."
and keeps loading forever.

But strange:  If I open the tutorial inside a notebook (help ->
Tutorial) the plot3d examples do give the interactive Jmol plots and  
the

"Get Image" click pops up a firefox window with a still graphic, but
keeps loading forever, too.

This or similar behaviour has been described on sage-support several
times, but afaIk without solution.  Any new ideas?


No. I remember someone (can't remember who) was going streamline the  
jmol <-> notebook interactions a while back, but then he got busy with  
something else. In particular, having many applets all running at the  
same time taxes the browser. Do you still have issues if you make a  
new worksheet with a single applet?


- Robert

--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] plot3d in notebook generates no plot

2010-03-11 Thread Eckhard Kosin
Robert,

thanks for the quick answer.

Am Mittwoch, den 10.03.2010, 12:07 -0800 schrieb Robert Bradshaw:
> On Mar 10, 2010, at 11:53 AM, Eckhard Kosin wrote:
> 
> > Hi all,
> >
> > I just installed Sage and now I'm working through the tutorial.
> > However, inside notebook I'm unable to generate 3d plots: Issuing i.e.
> >
> > x,y = var('x,y')
> > plot3d(x^2 + y^2, (x,-2,2), (y,-2,2))
> >
> > only yields a gray square without any plots.  At the right lower  
> > corner
> > of the square there is a link "Get Image", but clicking on it do not  
> > get
> > the image but jumps the top of the current worksheet (the address of  
> > the
> > link is "http://localhost:8000/home/admin/3/#";).
> >
> > On the Sage command line plot3d works, a Jmol window pops up showing  
> > the
> > graphic.  Also inside notebook plot3d(..., viewer='tachyon') works.
> >
> > Java (OpenJDK) is installed and enabled in the browser.
> 
> Do the demos at http://jmol.sourceforge.net/demo/ work for you?

Only the screenshot examples (still images) work, the interactive
applets show up a gray square only.

I googled around and found that there seems to be a problem with Jmol
and OpenJDK, see http://wiki.jmol.org/index.php/Release_Procedures and
http://www.mail-archive.com/jmol-us...@lists.sourceforge.net/msg11590.html 
and the thread following it.

So I install sun-java6 (jre, plugin and where they depend on) and now
the interactive applets from the Jmol website work.  But plot3d in a
workbook of Sage notebook only produces a black square with "Jmol" in
the lower right corner.  Rightclicking in the square opens the Jmol
menu.  If I click the link "Get Image" (outside the lower right corner
of the square) a firefox window pops up and starts loading something,
showing the black square (with "Jmol" in the lower left corner) and some
text "To save this image, you can try right-clicking on the image ..."
and keeps loading forever.

But strange:  If I open the tutorial inside a notebook (help ->
Tutorial) the plot3d examples do give the interactive Jmol plots and the
"Get Image" click pops up a firefox window with a still graphic, but
keeps loading forever, too.

This or similar behaviour has been described on sage-support several
times, but afaIk without solution.  Any new ideas?

Thank in advance

Eckhard


-- 
  Service für Mathematik und Simulation
  Dr. Eckhard Kosin, selbständiger Diplom-Mathematiker

  Am Nymphenbad 14
D-81245 München, Germany

  Tel.: (+49)(+89) 88 88 479
  Tel.,Fax: (+49)(+89) 835 844
  mailto:e...@mathematik-service-kosin.de
  http://www.mathematik-service-kosin.de

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] plot3d in notebook generates no plot

2010-03-10 Thread Robert Bradshaw

On Mar 10, 2010, at 11:53 AM, Eckhard Kosin wrote:


Hi all,

I just installed Sage and now I'm working through the tutorial.
However, inside notebook I'm unable to generate 3d plots: Issuing i.e.

x,y = var('x,y')
plot3d(x^2 + y^2, (x,-2,2), (y,-2,2))

only yields a gray square without any plots.  At the right lower  
corner
of the square there is a link "Get Image", but clicking on it do not  
get
the image but jumps the top of the current worksheet (the address of  
the

link is "http://localhost:8000/home/admin/3/#";).

On the Sage command line plot3d works, a Jmol window pops up showing  
the

graphic.  Also inside notebook plot3d(..., viewer='tachyon') works.

Java (OpenJDK) is installed and enabled in the browser.


Do the demos at http://jmol.sourceforge.net/demo/ work for you?

- Robert


--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] plot3d doesn't display.

2009-11-29 Thread William Stein
On Sun, Nov 29, 2009 at 4:43 PM, Christopher Olah
 wrote:
>> Jmol comes with Sage, so Jmol is always installed.  However, you need
>> Java to run Jmol.
>> Sage doesn't fallback to anything if Jmol doesn't work (I wish Sage
>> did fallback).
>
> That's interesting: I've had problems where it didn't work and I had
> to install Jmol myself. Is this a recent change?

No.   The first time Sage made any use of jmol, Sage also included it.
I'm guessing that when you installed jmol your package manager installed
some dependency of jmol (e.g. java), which made Sage's copy of jmol work.

William

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] plot3d doesn't display.

2009-11-29 Thread Christopher Olah
> Jmol comes with Sage, so Jmol is always installed.  However, you need
> Java to run Jmol.
> Sage doesn't fallback to anything if Jmol doesn't work (I wish Sage
> did fallback).

That's interesting: I've had problems where it didn't work and I had
to install Jmol myself. Is this a recent change?

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] plot3d doesn't display.

2009-11-29 Thread William Stein
On Sun, Nov 29, 2009 at 11:50 AM, Christopher Olah
 wrote:
> Installing Jmol may help. It's used to show the 3d stuff in a
> rotatable manner. That said, I think it should be using tachyon if
> Jmol isn't installed.

Jmol comes with Sage, so Jmol is always installed.  However, you need
Java to run Jmol.
Sage doesn't fallback to anything if Jmol doesn't work (I wish Sage
did fallback).

William

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] plot3d displays NOW !

2009-11-29 Thread Francois Maltey
This is the right reason :

> ...with Ubuntu, the right package is
>
> apt-get install icedtea6-plugin
>   
It's perfect.

So Sage contains the other computer algebra systems, but calls other 
programs for graphic display.

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] plot3d doesn't display.

2009-11-29 Thread Laurent
Christopher Olah ha scritto:
> Installing Jmol may help. It's used to show the 3d stuff in a
> rotatable manner. That said, I think it should be using tachyon if
> Jmol isn't installed.
>   
As far as I remember, with Ubuntu, the right package is
apt-get install icedtea6-plugin
At least, on my computer this (or one of its dependencies) makes plot3d 
work on Firefox. (Jaunty and Karmic)

Hope that helps
have a good night

Laurent

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] plot3d doesn't display.

2009-11-29 Thread Christopher Olah
Installing Jmol may help. It's used to show the 3d stuff in a
rotatable manner. That said, I think it should be using tachyon if
Jmol isn't installed.




On Sun, Nov 29, 2009 at 1:39 PM, Francois Maltey  wrote:
> Hello,
>
> I try to use the 3d plot but I can't.
>
> The first command is perfect.
> The second opens no new display and I can continue other calculus after.
>
> I use a sage 4.2 version in a emacs windows in gnome box. The
> distribution is an ubuntu.
>
> show( line([(1,2), (1,0), (3,1), (2,1)], color='red'))
> show( line3d([(1,2,3), (1,0,-2), (3,1,4), (2,1,-2)], color='red'))
>
> What am I missing please...
>
> Francois
>
> --
> To post to this group, send email to sage-support@googlegroups.com
> To unsubscribe from this group, send email to 
> sage-support-unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org



-- 
Christopher Olah
Email:   christopherolah...@gmail.com

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org