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

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

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

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,

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,

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

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

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

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

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

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

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,

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')

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

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

2018-11-17 Thread Kolen Cheung
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. `plot` works though. Thanks! --

[sage-support] plot3d renders heaviside(x) but not heaviside(x-y)

2018-01-31 Thread Makoto Yamashita
On CoCalc.com, I get "unable to simplify to float approximation" error when I run var('x y') plot3d(heaviside(x-y),(x,-1,1),(y,-1,1)) On the other hand, var('x y') plot3d(heaviside(x),(x,-1,1),(y,-1,1)) plot3d(heaviside(y),(x,-1,1),(y,-1,1)) renders as expected. Is there "correct" way to do this,

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. > > > >

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 >

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

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 >

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 > > --

[sage-support] plot3d

2016-10-09 Thread raman kurdi
Hi Sage, I want to draw the function $y^2+z^2=x^3+ax+b$ by sage. Could you please help me. 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

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

2015-07-10 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 fidel.barr...@gmail.com wrote: Hello everyone, In cloud.sagemath; is there a bug in the behaviour of the code below? P.show() just outputs Graphcs3d Object.

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

2015-07-09 Thread fidelbc
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]

[sage-support] plot3d using real-valued real-parameter functions but involving complex numbers as intermediates

2013-04-16 Thread GaryMak
Hi I am trying to use plot functions for the first time in sage - apologies if this is a dumb question for a change. I have a square matrix M of fixed complex numbers which are then all multiplied by a different phase depending on which column they are in. (In the 2x2 example below

[sage-support] plot3d without a web browser?

2010-09-20 Thread Dima Pasechnik
It's unclear to me whether plot3d, when started from (non-notebook) sage actually needs a browser running. The FAQ (http://www.sagemath.org/doc/faq/faq-usage.html) says one needs to install Java SDK (sic!) I understand one runs the jmol applet that does the actual work. Is a browser with a java

[sage-support] plot3d and expression evaluation

2010-03-12 Thread stefan
Hello group, I have encountered a somewhat strange problem in plotting a simple function. It seems to be related to the issues described in the tutorial section Some Common Issues with Functions, but the lambda- function trick does not work here. I have uploaded a worksheet with what I have been

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:

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,

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,

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,

[sage-support] plot3d in notebook generates no plot

2010-03-10 Thread Eckhard Kosin
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

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

[sage-support] plot3d a dataset from text file?

2009-12-14 Thread Daniel Farrell
Hi folks, Plot3d() look amazing! I really like the way lighting is used to because it help understand the shape of the surface. I have a data file that I want to plot using plot3d, so I import the data using numpy.loadtxt. plot3d() only plots functions so I try to interpolate the dataset using

[sage-support] plot3d doesn't display.

2009-11-29 Thread Francois Maltey
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'))

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 fmal...@nerim.fr wrote: Hello, I try to use the 3d plot but I can't. The first command is

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

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

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

2009-11-29 Thread William Stein
On Sun, Nov 29, 2009 at 11:50 AM, Christopher Olah christopherolah...@gmail.com 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.

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? --

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

2009-11-29 Thread William Stein
On Sun, Nov 29, 2009 at 4:43 PM, Christopher Olah christopherolah...@gmail.com 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

[sage-support] plot3d can't handle log(0)

2009-11-10 Thread kcrisman
In 4.2.1.alpha0: sage: f(x,y)=ln(x) sage: P=plot3d(f,(x,0,1),(y,0,1)) sage: P ERROR: An unexpected error occurred while tokenizing input The following traceback may be corrupted or invalid The error message is: ('EOF in multi-line statement', (16, 0))

[sage-support] plot3d freezes the browser

2008-04-09 Thread Ondrej Certik
Hi, I am in Munchen now, and so I did some advertisement for Sage :), now we are trying to install it. The plot3d stuff freezes the browser and these lines are printed to the sage console: sage: notebook(secure=False) The notebook files are stored in: /home/dk/.sage//sage_notebook WARNING: