[sage-devel] Re: figures in terminal using pyglet

2009-04-03 Thread William Stein
2009/4/3 Ondrej Certik : > > On Fri, Apr 3, 2009 at 4:30 AM, Jason Grout > wrote: >> >> An interesting post on the matplotlib list pointed to this recent >> project playing around with using pyglet to draw a terminal: >> >> http://www.loria.fr/~rougier/glnumpy.html >> >> He's looking for volunte

[sage-devel] Re: possible sage bug: True="1"

2009-04-03 Thread William Stein
2009/4/3 Robert Bradshaw : > > On Apr 3, 2009, at 12:13 PM, Nick Alexander wrote: > >> >>> This should probably change, and >>> ZZ._coerce_map_from_(bool) should return True. >> >> Just to be clear: we are going to keep "True * 1" as a valid >> multiplication?  That seems bizarre to me. > > Well,

[sage-devel] Re: Using polynomial generators in solve()

2009-04-03 Thread William Stein
2009/4/3 Arnaud Bergeron : > > Some code that used to work in sage-3.0.6 (or something close like > 3.0.3), now break with this error message: > R. = PolynomialRing(RR, 3) solve([symbolic_expression(x0) == 0], x0, x1, x2) > Traceback (most recent call last): >  File "", line 1, in >  Fi

[sage-devel] Re: LaTex representation for SymbolicFunctionEvaluation

2009-04-03 Thread Nick Alexander
> > (1) \int dx f(x) > (2) \int f(x) dx I prefer (2). Nick --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit th

[sage-devel] Re: jsmath in docstrings

2009-04-03 Thread John H Palmieri
On Apr 3, 12:55 am, Pat LeSmithe wrote: > John H Palmieri wrote: > > matrix? SHIFT-RETURN > > still doesn't behave well, while > > It seems that Cell.html_out() wraps this output in > div.cell_output_html_wrap. Referring to css.py, I think this accounts > for the different font. Adding font

[sage-devel] Re: LaTex representation for SymbolicFunctionEvaluation

2009-04-03 Thread Golam Mortuza Hossain
Hi, On Wed, Apr 1, 2009 at 10:11 PM, Jason Grout wrote: >> Jason: I was wondering whether you have opened any >> ticket on this issue? If not, then I will try it myself. > > I don't think I opened any tickets on this. OK, I will do it. >> Should I submit patches for each of these functions >>

[sage-devel] Using polynomial generators in solve()

2009-04-03 Thread Arnaud Bergeron
Some code that used to work in sage-3.0.6 (or something close like 3.0.3), now break with this error message: >>> R. = PolynomialRing(RR, 3) >>> solve([symbolic_expression(x0) == 0], x0, x1, x2) Traceback (most recent call last): File "", line 1, in File "/Users/anakha/.sage/sage_notebook/wo

[sage-devel] Re: possible sage bug: True="1"

2009-04-03 Thread Robert Bradshaw
On Apr 3, 2009, at 12:13 PM, Nick Alexander wrote: > >> This should probably change, and >> ZZ._coerce_map_from_(bool) should return True. > > Just to be clear: we are going to keep "True * 1" as a valid > multiplication? That seems bizarre to me. Well, I'm not stuck on it, it'd be mostly to fo

[sage-devel] Re: possible sage bug: True="1"

2009-04-03 Thread Nick Alexander
> This should probably change, and > ZZ._coerce_map_from_(bool) should return True. Just to be clear: we are going to keep "True * 1" as a valid multiplication? That seems bizarre to me. Nick --~--~-~--~~~---~--~~ To post to this group, send email to sage-deve

[sage-devel] Re: possible sage bug: True="1"

2009-04-03 Thread Robert Bradshaw
On Apr 3, 2009, at 7:03 AM, William Stein wrote: > On Fri, Apr 3, 2009 at 5:52 AM, Marco Streng > wrote: >> >> I found that in Sage 3.4, >> True * Integer(2)returnsint(1) >> >> I think it would be better if the output were either 2 or a type >> error. This seems to be a problem with Sa

[sage-devel] PLMMS 2009: First for Paper

2009-04-03 Thread Gabriel Dos Reis
The ACM SIGSAM 2009 International Workshop on Programming Languages for Mechanized Mathematics Systems PLMMS 2009 Munich, Germany; August 21, 2009 http://plmms09.cse.tamu.ed

[sage-devel] Re: figures in terminal using pyglet

2009-04-03 Thread Ondrej Certik
On Fri, Apr 3, 2009 at 4:30 AM, Jason Grout wrote: > > An interesting post on the matplotlib list pointed to this recent > project playing around with using pyglet to draw a terminal: > > http://www.loria.fr/~rougier/glnumpy.html > > He's looking for volunteers to help, if anyone wants to.  I tho

[sage-devel] Re: Fwd: [R-pkgs] New R graphics package targeting HTML 5 canvas element

2009-04-03 Thread Jason Grout
Harald Schilly wrote: > Maybe interesting to know where R is going or for others implementing > similar ideas: Plotting on a canvas element, that's pure javascript > with "drawing" commands instead of transferring images. On top of that > it might be possible to implement browser-side-only zooming

[sage-devel] Re: sage-mode problems (was Re: testinag py files outside the tree)

2009-04-03 Thread John Cremona
2009/4/3 Nick Alexander : > >> Loading rx...done >> >> >> An error has occurred while loading `/home/masgaj/.emacs': >> >> Wrong number of arguments: #[(regexp) "\301\302 DD\207" [regexp >> rx-to-string quote] 3 ("/usr/share/emacs/21.3/lisp/emacs-lisp/rx.elc" >> . 11482)], 3 >> >> To ensure normal

[sage-devel] Re: sage-mode problems (was Re: testinag py files outside the tree)

2009-04-03 Thread Nick Alexander
> Loading rx...done > > > An error has occurred while loading `/home/masgaj/.emacs': > > Wrong number of arguments: #[(regexp) "\301\302 DD\207" [regexp > rx-to-string quote] 3 ("/usr/share/emacs/21.3/lisp/emacs-lisp/rx.elc" > . 11482)], 3 > > To ensure normal operation, you should investigate the

[sage-devel] Re: mayavi spkg packages work

2009-04-03 Thread Jaap Spies
Ondrej Certik wrote: > Hi, > > I just want to confirm, that the packages and instructions here for > getting mayavi to work in the notebook (e.g. offscreen rendering, > without having X installed): > > http://sage.math.washington.edu/home/jsp/SPKGS/MayaviOSMesa/ > > work for me on both Ubuntu 6

[sage-devel] Re: sage-mode problems (was Re: testinag py files outside the tree)

2009-04-03 Thread John Cremona
2009/4/3 Nick Alexander : > > > On 3-Apr-09, at 1:36 AM, John Cremona wrote: > >> >> 2009/4/1 Nick Alexander : >>> which seems harmless. The (only) reason I switched to a .py suffix was that I could not get sage-mode to work in emacsbut that is a different thread! >>> >>> Pleas

[sage-devel] Fwd: [R-pkgs] New R graphics package targeting HTML 5 canvas element

2009-04-03 Thread Harald Schilly
Maybe interesting to know where R is going or for others implementing similar ideas: Plotting on a canvas element, that's pure javascript with "drawing" commands instead of transferring images. On top of that it might be possible to implement browser-side-only zooming. Harald -- Forwarde

[sage-devel] Re: sage-mode problems (was Re: testinag py files outside the tree)

2009-04-03 Thread Nick Alexander
On 3-Apr-09, at 1:36 AM, John Cremona wrote: > > 2009/4/1 Nick Alexander : >> >>> which seems harmless. The (only) reason I switched to a .py suffix >>> was that I could not get sage-mode to work in emacsbut that is a >>> different thread! >> >> Please explain. > > I went through various at

[sage-devel] mayavi spkg packages work

2009-04-03 Thread Ondrej Certik
Hi, I just want to confirm, that the packages and instructions here for getting mayavi to work in the notebook (e.g. offscreen rendering, without having X installed): http://sage.math.washington.edu/home/jsp/SPKGS/MayaviOSMesa/ work for me on both Ubuntu 64bit workstation and Debian 32bit in vi

[sage-devel] Re: 3.4.1.alpha0 notebook traceback doesn't work

2009-04-03 Thread Ondrej Certik
On Fri, Apr 3, 2009 at 8:04 AM, William Stein wrote: > > On Fri, Apr 3, 2009 at 7:54 AM, Ondrej Certik wrote: >> On Fri, Apr 3, 2009 at 7:24 AM, William Stein wrote: >>> On Fri, Apr 3, 2009 at 12:42 AM, Ondrej Certik wrote: Hi, If I use the notebook in Python only mode with

[sage-devel] Re: 3.4.1.alpha0 notebook traceback doesn't work

2009-04-03 Thread William Stein
On Fri, Apr 3, 2009 at 7:54 AM, Ondrej Certik wrote: > On Fri, Apr 3, 2009 at 7:24 AM, William Stein wrote: >> On Fri, Apr 3, 2009 at 12:42 AM, Ondrej Certik wrote: >>> >>> Hi, >>> >>> If I use the notebook in Python only mode with 3.4.1.alpha0, and if >>> there is any exception, I always get:

[sage-devel] Re: jsMath and docbuild typo?

2009-04-03 Thread William Stein
Can you create a trac ticket? Many thanks for tracking down these bugs!! William On Fri, Apr 3, 2009 at 1:53 AM, Pat LeSmithe wrote: > > > I think there's a typo in SAGE_ROOT/devel/sage/doc/common/conf.py.  The line > > jsmath_path = '/javascript_local/jsMath/easy/load.js' > > should be > > js

[sage-devel] Re: notebook(secure=False, address="") starts the browser with a wrong address

2009-04-03 Thread William Stein
On Fri, Apr 3, 2009 at 5:53 AM, Dan Drake wrote: > On Thu, 02 Apr 2009 at 11:53PM -0700, Ondrej Certik wrote: >> >> Hi, >> > [...] >> sage: notebook(secure=False, address="") >> [...] >> >> and it starts firefox on the local machine with this address: >> >> http://[www.:8000.com]/?startup_token=4

[sage-devel] Re: possible sage bug: True="1"

2009-04-03 Thread William Stein
On Fri, Apr 3, 2009 at 5:52 AM, Marco Streng wrote: > > I found that in Sage 3.4, > True * Integer(2)    returns    int(1) > > I think it would be better if the output were either 2 or a type > error. This seems to be a problem with Sage integers, python integers > work just fine. More generally

[sage-devel] possible sage bug: True*2=1

2009-04-03 Thread Marco Streng
I found that in Sage 3.4, True * Integer(2)returnsint(1) I think it would be better if the output were either 2 or a type error. This seems to be a problem with Sage integers, python integers work just fine. Some more details: -

[sage-devel] Re: notebook(secure=False, address="") starts the browser with a wrong address

2009-04-03 Thread Dan Drake
On Thu, 02 Apr 2009 at 11:53PM -0700, Ondrej Certik wrote: > > Hi, > [...] > sage: notebook(secure=False, address="") > [...] > > and it starts firefox on the local machine with this address: > > http://[www.:8000.com]/?startup_token=41e2a34e89e40139333a8113e9be2a50 > > which obviously fails.

[sage-devel] Re: (emacs + sage-mode) is better than the notebook ! :-)

2009-04-03 Thread Dan Drake
On Fri, 03 Apr 2009 at 06:32AM -0500, Jason Grout wrote: > > Here, try this: > > http://mathsci.kaist.ac.kr/~drake/pdf/linear-sys-stability.pdf > > WOW! Can I use this in my next diff eq class? This is great! Sure. Let's call it CC BY-NC-SA. It's really just a rehash of what most differential e

[sage-devel] Re: (emacs + sage-mode) is better than the notebook ! :-)

2009-04-03 Thread Jason Grout
Dan Drake wrote: > On Thu, 02 Apr 2009 at 09:11PM -0500, Jason Grout wrote: >> This link doesn't seem to work for me: "The requested URL >> /~drake/pdf/lineary-sys-stability.pdf was not found on this server." > > You're supposed to correct my lame typo: it's just "linear-sys". :) > > Here, try

[sage-devel] figures in terminal using pyglet

2009-04-03 Thread Jason Grout
An interesting post on the matplotlib list pointed to this recent project playing around with using pyglet to draw a terminal: http://www.loria.fr/~rougier/glnumpy.html He's looking for volunteers to help, if anyone wants to. I thought this went right along with Florent's request of drawing i

[sage-devel] jsMath and docbuild typo?

2009-04-03 Thread Pat LeSmithe
I think there's a typo in SAGE_ROOT/devel/sage/doc/common/conf.py. The line jsmath_path = '/javascript_local/jsMath/easy/load.js' should be jsmath_path = '/javascript_local/jsmath/easy/load.js' After rebuilding (with the "--jsmath" option), jsMath should work in the fast static documentation

[sage-devel] Re: sage-mode problems (was Re: testinag py files outside the tree)

2009-04-03 Thread John Cremona
2009/4/1 Nick Alexander : > >> which seems harmless. The (only) reason I switched to a .py suffix >> was that I could not get sage-mode to work in emacsbut that is a >> different thread! > > Please explain. I went through various attempts a few days ago. Currently I have these relevant file

[sage-devel] Re: jsmath in docstrings

2009-04-03 Thread Pat LeSmithe
John H Palmieri wrote: > matrix? SHIFT-RETURN > still doesn't behave well, while It seems that Cell.html_out() wraps this output in div.cell_output_html_wrap. Referring to css.py, I think this accounts for the different font. Adding font properties to div.docstring may help. Then, something

[sage-devel] Re: (emacs + sage-mode) is better than the notebook ! :-)

2009-04-03 Thread Florent Hivert
Hi, > > Along similar lines is something I've been thinking about, which is > > support for producing TikZ code from Sage objects so that we can easily > > produce lovely TeX graphics. TikZ is a bit like PSTricks, but with > > much wider support and better syntax; see [1] and [2] for exampl

[sage-devel] 3.4.1.alpha0 notebook traceback doesn't work

2009-04-03 Thread Ondrej Certik
Hi, If I use the notebook in Python only mode with 3.4.1.alpha0, and if there is any exception, I always get: Traceback (most recent call last): File "", line 1, in File "/home/ondrej/.sage/sage_notebook/worksheets/ondrej/0/code/26.py", line 6, in print _support_.syseval(python, ur'''