[sage-support] Re: How add text *outside* of boxes of different fonts in Sage notebooks?

2009-03-17 Thread William Stein

On Tue, Mar 17, 2009 at 10:31 PM, seber...@spawar.navy.mil
 wrote:
>
>
>
> On Mar 17, 6:57 pm, Jason Grout  wrote:
>> The easiest way to do this is to shift-click on the blue "add cell" bar.
>>   That will bring up the TinyMCE WYSIWYG editor.
>
> When I hover above an input box I do see a blue horizontal bar appear.
>
> When I shiftclick on it I get a new input boxeven after installing
> TinyMCE!?!?
>
> Must I configure Sage to turn on TinyMCE awareness?

What version of sage are you using?

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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: How add text *outside* of boxes of different fonts in Sage notebooks?

2009-03-17 Thread seber...@spawar.navy.mil



On Mar 17, 6:57 pm, Jason Grout  wrote:
> The easiest way to do this is to shift-click on the blue "add cell" bar.
>   That will bring up the TinyMCE WYSIWYG editor.

When I hover above an input box I do see a blue horizontal bar appear.

When I shiftclick on it I get a new input boxeven after installing
TinyMCE!?!?

Must I configure Sage to turn on TinyMCE awareness?
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] using %time and friends in loops

2009-03-17 Thread Dan Drake
Hello,

I'm interested in doing a bunch of timing, so I'd like to put %time or
%timeit statements inside a loop. But there's a problem: if I type out
something like

  sage: for n in [1..5]:
  : print 'n is %d' % n
  : %time N(pi**n)
  :

I get the expected output, but if I want to change something -- say, pi
to sqrt(2), if I hit the up arrow twice and edit the lines, I get this:

  sage: for n in [1..5]:
  print 'n is %d' % n
  %time N(sqrt(2)**n)
  
 File "", line 3
   %time N(sqrt(2)**n)
   ^
  SyntaxError: invalid syntax

I know the % functions are special IPython things, but why do they work
when I type things in manually, but not when I hit the arrows to go
back?

Dan

-- 
---  Dan Drake 
-  KAIST Department of Mathematical Sciences
---  http://mathsci.kaist.ac.kr/~drake


signature.asc
Description: Digital signature


[sage-support] Re: pylab.axis does not work any more

2009-03-17 Thread Luiz Felipe Martins

Oh, OK, this is fixed in 3.4.alpha0, I'm still running 3.3 (which, in
this computer, I compiled from source last week).

On Tue, Mar 17, 2009 at 6:05 PM, Robert Bradshaw
 wrote:
>
> On Mar 17, 2009, at 3:02 PM, Luiz Felipe Martins wrote:
>
> [...]
>
>> So, it is not the interface with scipy/pylab that changed, but the way
>> literals such as 5r are interpreted by Sage.
>
> This was a known bug, and has been fixed. http://trac.sagemath.org/
> sage_trac/ticket/5356
>
>>
>> On Tue, Mar 17, 2009 at 3:58 PM, Jason Grout
>>  wrote:
>>>
>>> Stan Schymanski wrote:
 Dear all,

 Since version 3.3, the option "pylab.axis([xmin,xmax,ymin,ymax])"
 leads to an error. Does anyone know what is going wrong there and
 how
 to get around it?

 Example generated in a Sage 3.4 notebook:

 import pylab
 pylab.clf()
 pylab.figure(1)
 pylab.plot([0,1,2],[0,1,2],'b+')
 pylab.axis([0,3,0,3])
>>>
>>>
>>> Try:
>>>
>>> pylab.axis([int(0), int(3), int(0), int(3)])
>>>
>>> Does it work now?
>>>
>>> Again, I think this is the problem that numpy/scipy doesn't play well
>>> with Sage integers and is expecting python integers.
>>>
>>>
>>> Jason
>>>
>>>
>>>
 pylab.savefig('foo.png')

 Traceback (click to the left for traceback)
 ...
 TypeError: function not supported for these types, and can't coerce
 safely to supported types


 Thanks already for your help!

 Cheers,
 Stan
>

>>>
>>>

>>
>>
>>
>> --
>> "The main things which seem to me important on their own account, and
>> not merely as means to other things, are knowledge, art, instinctive
>> happiness, and relations of friendship or affection."
>>   -Bertrand Russell
>>
>> L. Felipe Martins
>> Department of Mathematics
>> Cleveland State University
>> luizfelipe.mart...@gmail.com
>>
>> >
>
>
> >
>



-- 
"The main things which seem to me important on their own account, and
not merely as means to other things, are knowledge, art, instinctive
happiness, and relations of friendship or affection."
   -Bertrand Russell

L. Felipe Martins
Department of Mathematics
Cleveland State University
luizfelipe.mart...@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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Cannot copy on OSX

2009-03-17 Thread Jim Clark

On Mar 17, 2009, at 4:57 PM, William Stein wrote:

>
> On Tue, Mar 17, 2009 at 4:55 PM, Jim Clark  
>  wrote:
>>
>> On Mar 17, 2009, at 4:45 PM, William Stein wrote:
>>
>>> Thanks for the offer.  But we release new sage versions every 1-2
>>> weeks (!), and having
>>> old binaries doesn't help much
>>>
>>> William
>>
>> But the binary that you offer at sagemath.org doesn't work,
>> as the originator of this thread reported and as Michael Abshoff  
>> and I
>> confirmed.
>
> In one week we will release a new version of Sage.  And another new
> one a week or two later, etc.  Are you going to physically deliver new
> binaries every week or two?
>
That's a good question, one I have not thought through.

As it is, you have not been providing OSX PPC binaries with every  
Sage release --
the previous one was for version 3.2.3 last November.

Do you know how much demand there is for OSX PPC binaries?

Would it help to provide new binaries at major releases, which seem  
to come every month or two,
not every one to two weeks? That's a way that I would be willing to  
help.

Jim

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: How add text *outside* of boxes of different fonts in Sage notebooks?

2009-03-17 Thread Jason Grout

seber...@spawar.navy.mil wrote:
> How add text *outside* of boxes of different fonts in Sage notebooks?
> 
> I've noticed people are able to create notebooks with various fonts,
> bolding, etc.
> 
> I don't see how they got outside the eval boxes.


The easiest way to do this is to shift-click on the blue "add cell" bar. 
  That will bring up the TinyMCE WYSIWYG editor.

Thanks,

Jason


--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] How add text *outside* of boxes of different fonts in Sage notebooks?

2009-03-17 Thread seber...@spawar.navy.mil

How add text *outside* of boxes of different fonts in Sage notebooks?

I've noticed people are able to create notebooks with various fonts,
bolding, etc.

I don't see how they got outside the eval boxes.

cs
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Images in TinyMCE

2009-03-17 Thread Carl Witty

On Mar 17, 4:54 pm, kcrisman  wrote:
> > TinyMCE doesn't upload files (at least, not with what we've done with
> > it).  You have to upload your files separately from TinyMCE.
>
> I see!  So if I use TinyMCE to put an image from the web in my
> notebook without putting it in Data, then presumably when I disconnect
> from the web, the image disappears?  This would sound more consistent,
> though it still doesn't explain why the URL file:///etc doesn't
> work...

It's probably a security feature in your web browser.  If remote web
pages could load file:/// URLs, then somebody could make a web page
that probes your hard drive and reports what it finds to the web
server.

Carl

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Cannot copy on OSX

2009-03-17 Thread William Stein

On Tue, Mar 17, 2009 at 4:55 PM, Jim Clark  wrote:
>
> On Mar 17, 2009, at 4:45 PM, William Stein wrote:
>
>> Thanks for the offer.  But we release new sage versions every 1-2
>> weeks (!), and having
>> old binaries doesn't help much
>>
>> William
>
> But the binary that you offer at sagemath.org doesn't work,
> as the originator of this thread reported and as Michael Abshoff and I
> confirmed.

In one week we will release a new version of Sage.  And another new
one a week or two later, etc.  Are you going to physically deliver new
binaries every week or two?

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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Images in TinyMCE

2009-03-17 Thread William Stein

On Tue, Mar 17, 2009 at 4:54 PM, kcrisman  wrote:
>
>> TinyMCE doesn't upload files (at least, not with what we've done with
>> it).  You have to upload your files separately from TinyMCE.
>
> I see!  So if I use TinyMCE to put an image from the web in my
> notebook without putting it in Data, then presumably when I disconnect
> from the web, the image disappears?

YES. That's why I highly recommend *not* doing that.

> This would sound more consistent,
> though it still doesn't explain why the URL file:///etc doesn't
> work...
>
> - kcrisman
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Cannot copy on OSX

2009-03-17 Thread Jim Clark

On Mar 17, 2009, at 4:45 PM, William Stein wrote:

> Thanks for the offer.  But we release new sage versions every 1-2
> weeks (!), and having
> old binaries doesn't help much
>
> William

But the binary that you offer at sagemath.org doesn't work,
as the originator of this thread reported and as Michael Abshoff and I
confirmed.

Jim

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Images in TinyMCE

2009-03-17 Thread kcrisman

> TinyMCE doesn't upload files (at least, not with what we've done with
> it).  You have to upload your files separately from TinyMCE.

I see!  So if I use TinyMCE to put an image from the web in my
notebook without putting it in Data, then presumably when I disconnect
from the web, the image disappears?  This would sound more consistent,
though it still doesn't explain why the URL file:///etc doesn't
work...

- kcrisman
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Cannot copy on OSX

2009-03-17 Thread William Stein

On Tue, Mar 17, 2009 at 4:42 PM, Jim Clark  wrote:
>
> Hi Sage supporters,
>
> I have now succeeded in building sage 3.4 for OSX 10.4 PowerPC (G3).
>
> It copies, installs and runs successfully (on my two computers).
>
> I live close to the UW; if one of you will give me directions to the
> Sage lab, I can
> hand-deliver a sage 3.4 .dmg that I think will work for those of us
> with older iMacs.
>
> (It's getting late in the day on Tuesday, Mar. 17, so the best
> arrangement for me
> will be Wednesday a.m., but Tues. evening after 7 p.m. would also be
> o.k.)

Thanks for the offer.  But we release new sage versions every 1-2
weeks (!), and having
old binaries doesn't help much

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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Cannot copy on OSX

2009-03-17 Thread Jim Clark

Hi Sage supporters,

I have now succeeded in building sage 3.4 for OSX 10.4 PowerPC (G3).

It copies, installs and runs successfully (on my two computers).

I live close to the UW; if one of you will give me directions to the  
Sage lab, I can
hand-deliver a sage 3.4 .dmg that I think will work for those of us  
with older iMacs.

(It's getting late in the day on Tuesday, Mar. 17, so the best  
arrangement for me
will be Wednesday a.m., but Tues. evening after 7 p.m. would also be  
o.k.)

Cheers!
Jim Clark

>
> On Mar 15, 2009, at 11:09 PM, mabshoff wrote:
>
>>>  
>>> -
>>> -
>>> | Sage Version 3.4, Release Date:
>>> 2009-03-11 |
>>> | Type notebook() for the GUI, and license() for
>>> information.|
>>>  
>>> -
>>> -
>>> The SAGE install tree may have moved.
>>> Regenerating Python.pyo and .pyc files that hardcode the install  
>>> PATH
>>> (please wait at
>>> most a few minutes)...
>>> Do not interrupt this.
>>
>>
>> 
>>
>>> ImportError: dlopen(/Applications/sage/local/lib/python2.5/site-
>>> packages/sage/misc/randstate.so, 2): Library not loaded: /tmp/fooo/
>>> sage-3.4/local/lib/libgmp.3.dylib
>>>Referenced from: /Applications/sage/local/lib//libcsage.dylib
>>>Reason: no suitable image found.  Did find:
>>> /Applications/sage/local/lib//libgmp.3.dylib: incompatible
>>> cpu-subtype
>>
>> This seems to be the trouble, i.e. the MPIR we build on OSX 10.4/PPC
>> is on a G4 and now seems to produce a library that does not run on a
>> G3. That might be caused by newer XCode releases, but I am not 100%
>> sure. I do not think that we changed anything inside MPIR that would
>> cause this.
>>
>

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: confused on how to upgrad 3.2.3 to 3.4 on windows vmware

2009-03-17 Thread William Stein

On Tue, Mar 17, 2009 at 1:41 PM, Michael Madison
 wrote:
> William,  Thanks. It is working fine. I should have just did as I did in
> Linux.  The upgrade.txt file confused me.  Thanks for the rapid reply.  I
> love Sage. Mike
>

Thanks for reporting this. I'll change that file to make its purpose
clear, at least for sage-3.4.1.

> On Tue, Mar 17, 2009 at 1:23 PM, William Stein  wrote:
>>
>> On Tue, Mar 17, 2009 at 1:14 PM, Michael Madison
>>  wrote:
>> > William,  Does that mean I don't have to down load sage 3.4.zip?  Thanks
>>
>> Yes.  I created sage-3.4 by just doing
>>
>>  sage -upgrade
>>
>> on an existing sage-3.2.3 vmware image.  Fortunately it worked perfectly.
>>
>> William
>>
>> > Mike
>> >
>> > On Tue, Mar 17, 2009 at 1:09 PM, William Stein  wrote:
>> >>
>> >> On Tue, Mar 17, 2009 at 1:07 PM,   wrote:
>> >> >
>> >> > I seemed to be confused on how to upgrade Sage from 3.2.3 to 3.4
>> >> > using
>> >> > vmware windows. The upgrade was easy on my linux notebook.
>> >> >
>> >> >  I started the upgrade instruction from the new sage_vmx file on my
>> >> > windows machine. I followed the 1 to 8 instructions in the
>> >> > upgrade.txt
>> >> > file.  I was not sure which swap-clean.vmdk file to replace in the
>> >> > sage 3.2.3 directory.  I tried replacing the one from both the 3.2.3
>> >> > directory and the 3.4 directory.  When I start sage from my 3.4
>> >> > directory it bounces me out of notebook to the main vmware page.  If
>> >> > I
>> >> > start sage from the 3.2.3 directory by typing notebook.  The notebook
>> >> > comes up saying it is Sage 3.2.3.  I assume I lose all my old
>> >> > notebooks if I try to erase the in zipped sage directories and start
>> >> > over. Suggestions?  Thanks Mike
>> >>
>> >> Wow. Those instructions were for creating an entirely new
>> >> sage-vmware-3.4.zip image.
>> >> If you just have your *own* sage-vmware-3.2.3, which you have been
>> >> using a while,
>> >> the *only* thing you have to do to upgrade is
>> >>
>> >> 1. Login as the "manage" user.
>> >> 2. Type "sudo su"
>> >> 3. Type "sage -upgrade".
>> >>
>> >> That's it.  I did exactly the above to make sage-vmware-3.4 and it
>> >> worked
>> >> fine.
>> >>
>> >> William
>> >> >>
>> >
>>
>>
>>
>> --
>> William Stein
>> Associate Professor of Mathematics
>> University of Washington
>> http://wstein.org
>>
>>
>
>
>
> --
> Michael R. Madison, Ph.D.
> (530) 346-2032
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: the file is corrupted

2009-03-17 Thread William Stein

On Tue, Mar 17, 2009 at 8:29 AM, charitha  wrote:
>
> hi i download the SAGE but 005.vmdk  006.vmdk but the file is
> courupted.how can i download these 2 files only

For a limited time only,

  http://sage.math.washington.edu/home/wstein/tmp/sage-vmware-3.4/

-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: pylab.axis does not work any more

2009-03-17 Thread Jason Grout

Stan Schymanski wrote:
> Hi Jason,
> 
> your suggestion works, but it is not only related to integers, as I get 
> the same error message if I use e.g. 0.1, 3.1, 0.1, 3,1 as axis ranges. 
> How could I convert sage reals to python reals?

use float(0.1)


Thanks,

Jason



--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] bug in pynac collect_common_factors() leads to segmentation fault

2009-03-17 Thread Alex Raichev

It seems my math projects keep breaking things...

Alex

--
| Sage Version 3.4, Release Date: 2009-03-11 |
| Type notebook() for the GUI, and license() for information.|
--
sage: var('n,x',ns=1)
(n, x)
sage: g= (n+1)/x^n - n/x^n
sage: g.collect_common_factors()
/Applications/sage/local/bin/sage-sage: line 197:  1876 Segmentation
fault  sage-ipython "$@" -i

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] the file is corrupted

2009-03-17 Thread charitha

hi i download the SAGE but 005.vmdk  006.vmdk but the file is
courupted.how can i download these 2 files only

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: pylab.axis does not work any more

2009-03-17 Thread Stan Schymanski

Hi Jason,

your suggestion works, but it is not only related to integers, as I get 
the same error message if I use e.g. 0.1, 3.1, 0.1, 3,1 as axis ranges. 
How could I convert sage reals to python reals?

Cheers,
Stan

Jason Grout wrote:
> Stan Schymanski wrote:
>   
>> Dear all,
>>
>> Since version 3.3, the option "pylab.axis([xmin,xmax,ymin,ymax])"
>> leads to an error. Does anyone know what is going wrong there and how
>> to get around it?
>>
>> Example generated in a Sage 3.4 notebook:
>>
>> import pylab
>> pylab.clf()
>> pylab.figure(1)
>> pylab.plot([0,1,2],[0,1,2],'b+')
>> pylab.axis([0,3,0,3])
>> 
>
>
> Try:
>
> pylab.axis([int(0), int(3), int(0), int(3)])
>
> Does it work now?
>
> Again, I think this is the problem that numpy/scipy doesn't play well 
> with Sage integers and is expecting python integers.
>
>
> Jason
>
>
>
>   
>> pylab.savefig('foo.png')
>>
>> Traceback (click to the left for traceback)
>> ...
>> TypeError: function not supported for these types, and can't coerce
>> safely to supported types
>>
>>
>> Thanks already for your help!
>>
>> Cheers,
>> Stan
>> 
>
>
> >
>   



--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: pylab.axis does not work any more

2009-03-17 Thread Robert Bradshaw

On Mar 17, 2009, at 3:02 PM, Luiz Felipe Martins wrote:

[...]

> So, it is not the interface with scipy/pylab that changed, but the way
> literals such as 5r are interpreted by Sage.

This was a known bug, and has been fixed. http://trac.sagemath.org/ 
sage_trac/ticket/5356

>
> On Tue, Mar 17, 2009 at 3:58 PM, Jason Grout
>  wrote:
>>
>> Stan Schymanski wrote:
>>> Dear all,
>>>
>>> Since version 3.3, the option "pylab.axis([xmin,xmax,ymin,ymax])"
>>> leads to an error. Does anyone know what is going wrong there and  
>>> how
>>> to get around it?
>>>
>>> Example generated in a Sage 3.4 notebook:
>>>
>>> import pylab
>>> pylab.clf()
>>> pylab.figure(1)
>>> pylab.plot([0,1,2],[0,1,2],'b+')
>>> pylab.axis([0,3,0,3])
>>
>>
>> Try:
>>
>> pylab.axis([int(0), int(3), int(0), int(3)])
>>
>> Does it work now?
>>
>> Again, I think this is the problem that numpy/scipy doesn't play well
>> with Sage integers and is expecting python integers.
>>
>>
>> Jason
>>
>>
>>
>>> pylab.savefig('foo.png')
>>>
>>> Traceback (click to the left for traceback)
>>> ...
>>> TypeError: function not supported for these types, and can't coerce
>>> safely to supported types
>>>
>>>
>>> Thanks already for your help!
>>>
>>> Cheers,
>>> Stan

>>>
>>
>>
>>>
>
>
>
> --
> "The main things which seem to me important on their own account, and
> not merely as means to other things, are knowledge, art, instinctive
> happiness, and relations of friendship or affection."
>   -Bertrand Russell
>
> L. Felipe Martins
> Department of Mathematics
> Cleveland State University
> luizfelipe.mart...@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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: pylab.axis does not work any more

2009-03-17 Thread Luiz Felipe Martins

Here is something I noticed this weekend, running a worksheet I had
originally written in Sage 3.1 or 3.2 (I can't remember).

This gives an error:

sage: from scipy import stats
sage: stats.binom.pmf(5r,10r,0.5r)
Traceback (most recent call last):
...
TypeError: unsupported operand type(s) for *: 'numpy.ndarray' and 'numpy.bool_'

Of course, you can get around it as Jason suggested, or evaluating the
cells using %python

sage: %python
sage: stats.binom.pmf(5,10,0.5)
array(0.2460937499978)

However, this is what looks strange now:

sage: type(5r)

sage: type(5)

sage: type(int(5))


So, it is not the interface with scipy/pylab that changed, but the way
literals such as 5r are interpreted by Sage.

On Tue, Mar 17, 2009 at 3:58 PM, Jason Grout
 wrote:
>
> Stan Schymanski wrote:
> > Dear all,
> >
> > Since version 3.3, the option "pylab.axis([xmin,xmax,ymin,ymax])"
> > leads to an error. Does anyone know what is going wrong there and how
> > to get around it?
> >
> > Example generated in a Sage 3.4 notebook:
> >
> > import pylab
> > pylab.clf()
> > pylab.figure(1)
> > pylab.plot([0,1,2],[0,1,2],'b+')
> > pylab.axis([0,3,0,3])
>
>
> Try:
>
> pylab.axis([int(0), int(3), int(0), int(3)])
>
> Does it work now?
>
> Again, I think this is the problem that numpy/scipy doesn't play well
> with Sage integers and is expecting python integers.
>
>
> Jason
>
>
>
> > pylab.savefig('foo.png')
> >
> > Traceback (click to the left for traceback)
> > ...
> > TypeError: function not supported for these types, and can't coerce
> > safely to supported types
> >
> >
> > Thanks already for your help!
> >
> > Cheers,
> > Stan
> > >
> >
>
>
> >



--
"The main things which seem to me important on their own account, and
not merely as means to other things, are knowledge, art, instinctive
happiness, and relations of friendship or affection."
  -Bertrand Russell

L. Felipe Martins
Department of Mathematics
Cleveland State University
luizfelipe.mart...@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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Can not load *.sws file

2009-03-17 Thread Rolandb

I solved my problem via KAIST 3.2.3. Size file was 13MB, maybe that's
a problem.

On 17 mrt, 07:17, Rolandb  wrote:
> Hi, I saved my notebook files to *.sws files, and I installed SAGE
> 3.4.
> However,  I can not load a particular sws file.
> Can I send the file to somebody to have a look at it?
> Thanks in advance! Roland
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: confused on how to upgrad 3.2.3 to 3.4 on windows vmware

2009-03-17 Thread Michael Madison
William,  Thanks. It is working fine. I should have just did as I did in
Linux.  The upgrade.txt file confused me.  Thanks for the rapid reply.  I
love Sage. Mike

On Tue, Mar 17, 2009 at 1:23 PM, William Stein  wrote:

>
> On Tue, Mar 17, 2009 at 1:14 PM, Michael Madison
>  wrote:
> > William,  Does that mean I don't have to down load sage 3.4.zip?  Thanks
>
> Yes.  I created sage-3.4 by just doing
>
>  sage -upgrade
>
> on an existing sage-3.2.3 vmware image.  Fortunately it worked perfectly.
>
> William
>
> > Mike
> >
> > On Tue, Mar 17, 2009 at 1:09 PM, William Stein  wrote:
> >>
> >> On Tue, Mar 17, 2009 at 1:07 PM,   wrote:
> >> >
> >> > I seemed to be confused on how to upgrade Sage from 3.2.3 to 3.4 using
> >> > vmware windows. The upgrade was easy on my linux notebook.
> >> >
> >> >  I started the upgrade instruction from the new sage_vmx file on my
> >> > windows machine. I followed the 1 to 8 instructions in the upgrade.txt
> >> > file.  I was not sure which swap-clean.vmdk file to replace in the
> >> > sage 3.2.3 directory.  I tried replacing the one from both the 3.2.3
> >> > directory and the 3.4 directory.  When I start sage from my 3.4
> >> > directory it bounces me out of notebook to the main vmware page.  If I
> >> > start sage from the 3.2.3 directory by typing notebook.  The notebook
> >> > comes up saying it is Sage 3.2.3.  I assume I lose all my old
> >> > notebooks if I try to erase the in zipped sage directories and start
> >> > over. Suggestions?  Thanks Mike
> >>
> >> Wow. Those instructions were for creating an entirely new
> >> sage-vmware-3.4.zip image.
> >> If you just have your *own* sage-vmware-3.2.3, which you have been
> >> using a while,
> >> the *only* thing you have to do to upgrade is
> >>
> >> 1. Login as the "manage" user.
> >> 2. Type "sudo su"
> >> 3. Type "sage -upgrade".
> >>
> >> That's it.  I did exactly the above to make sage-vmware-3.4 and it
> worked
> >> fine.
> >>
> >> William
> >> >>
> >
>
>
>
> --
> William Stein
> Associate Professor of Mathematics
> University of Washington
> http://wstein.org
>
> >
>


-- 
Michael R. Madison, Ph.D.
(530) 346-2032

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: confused on how to upgrad 3.2.3 to 3.4 on windows vmware

2009-03-17 Thread William Stein

On Tue, Mar 17, 2009 at 1:14 PM, Michael Madison
 wrote:
> William,  Does that mean I don't have to down load sage 3.4.zip?  Thanks

Yes.  I created sage-3.4 by just doing

  sage -upgrade

on an existing sage-3.2.3 vmware image.  Fortunately it worked perfectly.

William

> Mike
>
> On Tue, Mar 17, 2009 at 1:09 PM, William Stein  wrote:
>>
>> On Tue, Mar 17, 2009 at 1:07 PM,   wrote:
>> >
>> > I seemed to be confused on how to upgrade Sage from 3.2.3 to 3.4 using
>> > vmware windows. The upgrade was easy on my linux notebook.
>> >
>> >  I started the upgrade instruction from the new sage_vmx file on my
>> > windows machine. I followed the 1 to 8 instructions in the upgrade.txt
>> > file.  I was not sure which swap-clean.vmdk file to replace in the
>> > sage 3.2.3 directory.  I tried replacing the one from both the 3.2.3
>> > directory and the 3.4 directory.  When I start sage from my 3.4
>> > directory it bounces me out of notebook to the main vmware page.  If I
>> > start sage from the 3.2.3 directory by typing notebook.  The notebook
>> > comes up saying it is Sage 3.2.3.  I assume I lose all my old
>> > notebooks if I try to erase the in zipped sage directories and start
>> > over. Suggestions?  Thanks Mike
>>
>> Wow. Those instructions were for creating an entirely new
>> sage-vmware-3.4.zip image.
>> If you just have your *own* sage-vmware-3.2.3, which you have been
>> using a while,
>> the *only* thing you have to do to upgrade is
>>
>> 1. Login as the "manage" user.
>> 2. Type "sudo su"
>> 3. Type "sage -upgrade".
>>
>> That's it.  I did exactly the above to make sage-vmware-3.4 and it worked
>> fine.
>>
>> William
>> >>
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Images in TinyMCE

2009-03-17 Thread Jason Grout

kcrisman wrote:
> 
> 
>> Generally, I've used images that were already on the web.  For those, I
>> just did one of the following:
>>
>> * Click on the image icon, paste the URL to the image, clicked okay
> 
> This works from the web.  But it wouldn't work from my computer!  (I
> guess that was my real question - how to get a file from my computer
> on it.)
> 
>> However, if you want to upload an image, then you can do this:
>>
>> * Under the "Data" menu, click "Upload or create file..."
>> * Upload the file
>> * In the resulting page, there is a link to the file:
>> "You may download "
>>
>> * Right-click on the link and copy the link location (this is the "URL"
>> we'll use).
>>
>> * Go back to the worksheet TinyMCE cell.  Click on the image button (the
>> penultimate button on the 2nd row).  Paste the link into the Image URL
>> box.  Then click Insert.
>>
> 
> These instructions are exactly what I would have done (and are
> essentially what William wrote at exactly the same time as you, wow!)
> but I didn't have access to Sage when I wrote the email to try it.  So
> is this the only way to upload *local* files into the notebook?
> Again, I couldn't get it to upload using file:/// for some reason,
> even though most browsers support this syntax (don't they?).  Maybe
> TinyMCE doesn't support that syntax?


TinyMCE doesn't upload files (at least, not with what we've done with 
it).  You have to upload your files separately from TinyMCE.

Jason




--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: confused on how to upgrad 3.2.3 to 3.4 on windows vmware

2009-03-17 Thread Michael Madison
William,  Does that mean I don't have to down load sage 3.4.zip?  Thanks
Mike

On Tue, Mar 17, 2009 at 1:09 PM, William Stein  wrote:

>
> On Tue, Mar 17, 2009 at 1:07 PM,   wrote:
> >
> > I seemed to be confused on how to upgrade Sage from 3.2.3 to 3.4 using
> > vmware windows. The upgrade was easy on my linux notebook.
> >
> >  I started the upgrade instruction from the new sage_vmx file on my
> > windows machine. I followed the 1 to 8 instructions in the upgrade.txt
> > file.  I was not sure which swap-clean.vmdk file to replace in the
> > sage 3.2.3 directory.  I tried replacing the one from both the 3.2.3
> > directory and the 3.4 directory.  When I start sage from my 3.4
> > directory it bounces me out of notebook to the main vmware page.  If I
> > start sage from the 3.2.3 directory by typing notebook.  The notebook
> > comes up saying it is Sage 3.2.3.  I assume I lose all my old
> > notebooks if I try to erase the in zipped sage directories and start
> > over. Suggestions?  Thanks Mike
>
> Wow. Those instructions were for creating an entirely new
> sage-vmware-3.4.zip image.
> If you just have your *own* sage-vmware-3.2.3, which you have been
> using a while,
> the *only* thing you have to do to upgrade is
>
> 1. Login as the "manage" user.
> 2. Type "sudo su"
> 3. Type "sage -upgrade".
>
> That's it.  I did exactly the above to make sage-vmware-3.4 and it worked
> fine.
>
> William
>
> >
>


-- 
Michael R. Madison, Ph.D.
(530) 346-2032

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: confused on how to upgrad 3.2.3 to 3.4 on windows vmware

2009-03-17 Thread William Stein

On Tue, Mar 17, 2009 at 1:07 PM,   wrote:
>
> I seemed to be confused on how to upgrade Sage from 3.2.3 to 3.4 using
> vmware windows. The upgrade was easy on my linux notebook.
>
>  I started the upgrade instruction from the new sage_vmx file on my
> windows machine. I followed the 1 to 8 instructions in the upgrade.txt
> file.  I was not sure which swap-clean.vmdk file to replace in the
> sage 3.2.3 directory.  I tried replacing the one from both the 3.2.3
> directory and the 3.4 directory.  When I start sage from my 3.4
> directory it bounces me out of notebook to the main vmware page.  If I
> start sage from the 3.2.3 directory by typing notebook.  The notebook
> comes up saying it is Sage 3.2.3.  I assume I lose all my old
> notebooks if I try to erase the in zipped sage directories and start
> over. Suggestions?  Thanks Mike

Wow. Those instructions were for creating an entirely new
sage-vmware-3.4.zip image.
If you just have your *own* sage-vmware-3.2.3, which you have been
using a while,
the *only* thing you have to do to upgrade is

1. Login as the "manage" user.
2. Type "sudo su"
3. Type "sage -upgrade".

That's it.  I did exactly the above to make sage-vmware-3.4 and it worked fine.

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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] confused on how to upgrad 3.2.3 to 3.4 on windows vmware

2009-03-17 Thread madison . michael

I seemed to be confused on how to upgrade Sage from 3.2.3 to 3.4 using
vmware windows. The upgrade was easy on my linux notebook.

 I started the upgrade instruction from the new sage_vmx file on my
windows machine. I followed the 1 to 8 instructions in the upgrade.txt
file.  I was not sure which swap-clean.vmdk file to replace in the
sage 3.2.3 directory.  I tried replacing the one from both the 3.2.3
directory and the 3.4 directory.  When I start sage from my 3.4
directory it bounces me out of notebook to the main vmware page.  If I
start sage from the 3.2.3 directory by typing notebook.  The notebook
comes up saying it is Sage 3.2.3.  I assume I lose all my old
notebooks if I try to erase the in zipped sage directories and start
over. Suggestions?  Thanks Mike
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: pylab.axis does not work any more

2009-03-17 Thread Jason Grout

Stan Schymanski wrote:
> Dear all,
> 
> Since version 3.3, the option "pylab.axis([xmin,xmax,ymin,ymax])"
> leads to an error. Does anyone know what is going wrong there and how
> to get around it?
> 
> Example generated in a Sage 3.4 notebook:
> 
> import pylab
> pylab.clf()
> pylab.figure(1)
> pylab.plot([0,1,2],[0,1,2],'b+')
> pylab.axis([0,3,0,3])


Try:

pylab.axis([int(0), int(3), int(0), int(3)])

Does it work now?

Again, I think this is the problem that numpy/scipy doesn't play well 
with Sage integers and is expecting python integers.


Jason



> pylab.savefig('foo.png')
> 
> Traceback (click to the left for traceback)
> ...
> TypeError: function not supported for these types, and can't coerce
> safely to supported types
> 
> 
> Thanks already for your help!
> 
> Cheers,
> Stan
> > 
> 


--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Confused about usage/purpose of ">>>" in notebooks...

2009-03-17 Thread seber...@spawar.navy.mil

If I'm reading correctly, is the purpose of ">>>" is to denote input
you want ignored during evaluation?

I tried to evaluate a line with ">>>" and it still gave an error
message.  So, I'm probably mistaken about something here.

Chris
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Trouble with PermutationGroupElement

2009-03-17 Thread Rob Beezer

It's even worse:

sage: G=SymmetricGroup(8)
sage: H=SymmetricGroup(2)
sage: a=H('(1,2)')
sage: b=G('(1,2)(3,4)')
sage: a==b
True

I don't think any interpretation would suggest this behavior as
correct.  The problem is that the current compare only runs through
checking equality of the images for the two permutations as far as the
length of the first.

John's patch at Trac 5537 should correct this.  I'll have some timings
and a review up later today.

Rob


--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Blue Sage logo

2009-03-17 Thread Harald Schilly



On Mar 17, 5:34 pm, David Møller Hansen 
wrote:
> I've put the icon as an attachment here 
> [sage-blue-logo.icns]:http://wiki.sagemath.org/SageMacApplication
>

cool, i was working, i would have done it now. just one thing, i can't
see the attachment on that wikisite!

harald
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Blue Sage logo

2009-03-17 Thread David Møller Hansen

I've put the icon as an attachment here [sage-blue-logo.icns]:
http://wiki.sagemath.org/SageMacApplication

/David

On Mar 17, 5:26 pm, David Møller Hansen 
wrote:
> Oh - don't worry about it! I figured out how to color and export it
> myself. Hope OI didn't get you started! Still a lot of thanks for your
> help. I will link to my mac os x icon when I've finished it
>
> On Mar 17, 5:17 pm, David Møller Hansen 
> wrote:
>
>
>
> > Inkscape. That's a really nice application! Now I see all the logos!
>
> > OK that is really nice of you - I want to use the rounded cornered
> > blue square with the polygon in white. It is there in black and white
> > but I don't see it in blue and white. Think that it will make nice as
> > a mac os x icon!
>
> > 512 x 512 is fine.
>
> > Thanks a lot!
>
> > /David
>
> > On Mar 17, 1:44 pm, Harald Schilly  wrote:
>
> > > On Mar 17, 1:16 pm, David Møller Hansen 
> > > wrote:
>
> > > > Thanks.
>
> > > > What do you use to open .svg files?
>
> > > you can't open that file with safari. Use inkscape or another vector
> > > graphics editor. browsers don't have full svg support. It's also a
> > > collection of various symbols and includes the older logo and unused
> > > stuff. If you tell me what you need (only the logo, or logo+text?), I
> > > can extract one single graphic for you and put it on the wiki page.
>
> > > greetings Harald
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Blue Sage logo

2009-03-17 Thread David Møller Hansen

Oh - don't worry about it! I figured out how to color and export it
myself. Hope OI didn't get you started! Still a lot of thanks for your
help. I will link to my mac os x icon when I've finished it

On Mar 17, 5:17 pm, David Møller Hansen 
wrote:
> Inkscape. That's a really nice application! Now I see all the logos!
>
> OK that is really nice of you - I want to use the rounded cornered
> blue square with the polygon in white. It is there in black and white
> but I don't see it in blue and white. Think that it will make nice as
> a mac os x icon!
>
> 512 x 512 is fine.
>
> Thanks a lot!
>
> /David
>
> On Mar 17, 1:44 pm, Harald Schilly  wrote:
>
>
>
> > On Mar 17, 1:16 pm, David Møller Hansen 
> > wrote:
>
> > > Thanks.
>
> > > What do you use to open .svg files?
>
> > you can't open that file with safari. Use inkscape or another vector
> > graphics editor. browsers don't have full svg support. It's also a
> > collection of various symbols and includes the older logo and unused
> > stuff. If you tell me what you need (only the logo, or logo+text?), I
> > can extract one single graphic for you and put it on the wiki page.
>
> > greetings Harald
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Blue Sage logo

2009-03-17 Thread David Møller Hansen

Inkscape. That's a really nice application! Now I see all the logos!

OK that is really nice of you - I want to use the rounded cornered
blue square with the polygon in white. It is there in black and white
but I don't see it in blue and white. Think that it will make nice as
a mac os x icon!

512 x 512 is fine.

Thanks a lot!

/David

On Mar 17, 1:44 pm, Harald Schilly  wrote:
> On Mar 17, 1:16 pm, David Møller Hansen 
> wrote:
>
> > Thanks.
>
> > What do you use to open .svg files?
>
> you can't open that file with safari. Use inkscape or another vector
> graphics editor. browsers don't have full svg support. It's also a
> collection of various symbols and includes the older logo and unused
> stuff. If you tell me what you need (only the logo, or logo+text?), I
> can extract one single graphic for you and put it on the wiki page.
>
> greetings Harald
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Images in TinyMCE

2009-03-17 Thread kcrisman



> Generally, I've used images that were already on the web.  For those, I
> just did one of the following:
>
> * Click on the image icon, paste the URL to the image, clicked okay

This works from the web.  But it wouldn't work from my computer!  (I
guess that was my real question - how to get a file from my computer
on it.)

> However, if you want to upload an image, then you can do this:
>
> * Under the "Data" menu, click "Upload or create file..."
> * Upload the file
> * In the resulting page, there is a link to the file:
> "You may download "
>
> * Right-click on the link and copy the link location (this is the "URL"
> we'll use).
>
> * Go back to the worksheet TinyMCE cell.  Click on the image button (the
> penultimate button on the 2nd row).  Paste the link into the Image URL
> box.  Then click Insert.
>

These instructions are exactly what I would have done (and are
essentially what William wrote at exactly the same time as you, wow!)
but I didn't have access to Sage when I wrote the email to try it.  So
is this the only way to upload *local* files into the notebook?
Again, I couldn't get it to upload using file:/// for some reason,
even though most browsers support this syntax (don't they?).  Maybe
TinyMCE doesn't support that syntax?

- kcrisman
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: pylab.axis does not work any more

2009-03-17 Thread Stan Schymanski

Sorry, here is the full traceback. Thanks for looking into that!

Stan

Traceback (most recent call last):
  File "", line 1, in 
  File 
"/Users/sschym/.sage/sage_notebook/worksheets/admin/4/code/33.py", line 
11, in 
pylab.axis([_sage_const_0 ,_sage_const_3 ,_sage_const_0 
,_sage_const_3 ])
  File 
"/Users/sschym/Programs/sage-3.4/local/lib/python2.5/site-packages/matplotlib/pyplot.py",
 
line 827, in axis
v = ax.axis(*v, **kwargs)
  File 
"/Users/sschym/Programs/sage-3.4/local/lib/python2.5/site-packages/matplotlib/axes.py",
 
line 1250, in axis
self.set_xlim([v[0], v[1]])
  File 
"/Users/sschym/Programs/sage-3.4/local/lib/python2.5/site-packages/matplotlib/axes.py",
 
line 1944, in set_xlim
xmin, xmax = mtransforms.nonsingular(xmin, xmax, increasing=False)
  File 
"/Users/sschym/Programs/sage-3.4/local/lib/python2.5/site-packages/matplotlib/transforms.py",
 
line 2237, in nonsingular
if (not np.isfinite(vmin)) or (not np.isfinite(vmax)):
TypeError: function not supported for these types, and can't coerce 
safely to supported types

Jason Grout wrote:
> Stan Schymanski wrote:
>   
>> Dear all,
>>
>> Since version 3.3, the option "pylab.axis([xmin,xmax,ymin,ymax])"
>> leads to an error. Does anyone know what is going wrong there and how
>> to get around it?
>>
>> Example generated in a Sage 3.4 notebook:
>>
>> import pylab
>> pylab.clf()
>> pylab.figure(1)
>> pylab.plot([0,1,2],[0,1,2],'b+')
>> pylab.axis([0,3,0,3])
>> pylab.savefig('foo.png')
>>
>> Traceback (click to the left for traceback)
>> ...
>> TypeError: function not supported for these types, and can't coerce
>> safely to supported types
>>
>>
>> 
>
> Could you click to the left for the full traceback and post that?
>
> Thanks,
>
> Jason
>
>
> >
>   


--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: pylab.axis does not work any more

2009-03-17 Thread Jason Grout

Stan Schymanski wrote:
> Dear all,
> 
> Since version 3.3, the option "pylab.axis([xmin,xmax,ymin,ymax])"
> leads to an error. Does anyone know what is going wrong there and how
> to get around it?
> 
> Example generated in a Sage 3.4 notebook:
> 
> import pylab
> pylab.clf()
> pylab.figure(1)
> pylab.plot([0,1,2],[0,1,2],'b+')
> pylab.axis([0,3,0,3])
> pylab.savefig('foo.png')
> 
> Traceback (click to the left for traceback)
> ...
> TypeError: function not supported for these types, and can't coerce
> safely to supported types
> 
>

Could you click to the left for the full traceback and post that?

Thanks,

Jason


--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] pylab.axis does not work any more

2009-03-17 Thread Stan Schymanski

Dear all,

Since version 3.3, the option "pylab.axis([xmin,xmax,ymin,ymax])"
leads to an error. Does anyone know what is going wrong there and how
to get around it?

Example generated in a Sage 3.4 notebook:

import pylab
pylab.clf()
pylab.figure(1)
pylab.plot([0,1,2],[0,1,2],'b+')
pylab.axis([0,3,0,3])
pylab.savefig('foo.png')

Traceback (click to the left for traceback)
...
TypeError: function not supported for these types, and can't coerce
safely to supported types


Thanks already for your help!

Cheers,
Stan
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Blue Sage logo

2009-03-17 Thread Harald Schilly



On Mar 17, 1:16 pm, David Møller Hansen 
wrote:
> Thanks.
>
> What do you use to open .svg files?

you can't open that file with safari. Use inkscape or another vector
graphics editor. browsers don't have full svg support. It's also a
collection of various symbols and includes the older logo and unused
stuff. If you tell me what you need (only the logo, or logo+text?), I
can extract one single graphic for you and put it on the wiki page.

greetings Harald
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] new cpu flag in 3.4 x86_64 binaries: sse4_1?

2009-03-17 Thread Art

The sage 3.4 Linux x86_64 binaries have acquired a new sage-flags.txt,
sse4_1.

I used:

sage-3.2.3-debian-64bit-intel_xeon-x86_64-Linux.tar.gz

which works perfectly on an intel xeon 5160 but the update to 3.4
gives me the warning flag when starting sage. I think this processor
was released in June 2006. Is it already out of date? Or is there
something wrong with my setup.

cat /proc/cpuinfo:

processor   : 3
vendor_id   : GenuineIntel
cpu family  : 6
model   : 15
model name  : Intel(R) Xeon(R) CPU5160  @ 3.00GHz
stepping: 6
cpu MHz : 3000.005
cache size  : 4096 KB
physical id : 3
siblings: 2
core id : 7
cpu cores   : 2
fpu : yes
fpu_exception   : yes
cpuid level : 10
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm pni
monitor ds_cpl est tm2 cx16 xtpr lahf_lm
bogomips: 6000.03
clflush size: 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:


--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Blue Sage logo

2009-03-17 Thread David Møller Hansen

Thanks.

What do you use to open .svg files?

I work in mac os x 10.5 tried just to unpack it and open it in safari
webbrowser (apparently it has some support for vector graphics. But
some of the logos where broken i.e. not displayed, maybe the blue
logos since I didn't see them in the file.

/David

On Mar 17, 12:04 pm, Harald Schilly  wrote:
> you can find all sources for the artwork 
> here:http://wiki.sagemath.org/CorporateIdentity
> (and yes, i plan to expand this page)
> feel free to add derived logo graphics or banners to this wiki page!
>
> h
>
> On Mar 17, 9:29 am, David Møller Hansen 
> wrote:
>
> > Can any one post a high res version of the blue Sage logo used on the
> > front page and here in the google forums?
>
> > There is a dedicated logo section on the wiki.
>
> > I would like to use it as the logo for a sage.app produced with the
> > SageMacApplication guide.
>
> > Thanks
>
> > /David
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: ImportError - While running ./sage Command

2009-03-17 Thread Simon King

Hi!

On Mar 17, 12:03 pm, Karthick  wrote:
>  Or How to use Sage in the browser?

Using Sage in a browser (aka "notebook") is what many people do.

For starters, you may obtain information by starting sage and then
asking
 sage: notebook?

Or see http://wiki.sagemath.org/StartingTheNotebook

In general, typing "?" after the name of an object in Sage will
provide you with informations on that object.

Kind regards,
 Simon
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Blue Sage logo

2009-03-17 Thread Harald Schilly

you can find all sources for the artwork here: 
http://wiki.sagemath.org/CorporateIdentity
(and yes, i plan to expand this page)
feel free to add derived logo graphics or banners to this wiki page!

h

On Mar 17, 9:29 am, David Møller Hansen 
wrote:
> Can any one post a high res version of the blue Sage logo used on the
> front page and here in the google forums?
>
> There is a dedicated logo section on the wiki.
>
> I would like to use it as the logo for a sage.app produced with the
> SageMacApplication guide.
>
> Thanks
>
> /David
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: ImportError - While running ./sage Command

2009-03-17 Thread Karthick

Hi,

Many thanks for your quick replay and suggestions. I successfully
installed sage on
 my machine.

 But I want to know whether Sage provides any plug-in for Moodle like
WIRIS.

 Or How to use Sage in the browser? I know a bit that sage can be
used
 as Webservice..

 Please Advice on this..


On Mar 16, 10:14 pm, William Stein  wrote:
> On Mon, Mar 16, 2009 at 6:41 AM, Karthick. B
>
>
>
>  wrote:
> > Hi,
>
> > I am very new to sage. I tried to run sage in my Linux fedora machine and
> > when I tried to run the command ./sage I got the following error
>
> > ImportError: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found
> > (required by /usr/local/bin/Sage/local/lib/libntl-5.4.2.so)
>
> > Error importing ipy_profile_sage - perhaps you should run %upgrade?
>
> > WARNING: Loading of ipy_profile_sage failed.
>
> > And it stops .  Please help to solve this problem.
>
> You will have to build from source.   Get the latest Sage tarball here:
>  http://sagemath.org/src/
> extract it with
> $ tar xvf sage-3.4.tar
> then build it via
> $ cd sage-3.4
> $ make
>
> This will take about 3 hours and requires that you have gcc,g++, etc. 
> installed.
>
>  -- 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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: jacobian() fails with Pynac symbolics

2009-03-17 Thread Burcin Erocal

Hi Alex,

On Mon, 16 Mar 2009 19:26:26 -0700 (PDT)
Alex Raichev  wrote:

> 
> --
> | Sage Version 3.4, Release Date: 2009-03-11 |
> | Type notebook() for the GUI, and license() for information.|
> --
> sage: var('x,y', ns=1)
> (x, y)
> sage: f= x+y
> sage: type(f)
> 
> sage: jacobian(f,[x,y])
> ---
> TypeError Traceback (most recent call
> last)
> 
> /Users/arai021/ in ()
> 
> /Applications/sage/local/lib/python2.5/site-packages/sage/calculus/
> functions.pyc in jacobian(functions, variables)
> 136
> 137 if not isinstance(variables, (tuple, list)) and not
> is_Vector(variables):
> 138 variables = [variables]
> 139
> --> 140 return matrix([[diff(f, v) for v in variables] for f in
> functions])
> 
> /Applications/sage/local/lib/python2.5/site-packages/sage/calculus/
> functional.pyc in derivative(f, *args, **kwds)
> 145 pass
> 146 if not isinstance(f, SymbolicExpression):
> --> 147 f = SR(f)
> 148 return f.derivative(*args, **kwds)
> 149

> TypeError: cannot coerce type ' 'sage.symbolic.expression.Expression'>' into a SymbolicExpression.

You get this error because pynac expressions don't define
a .derivative() function. I also noticed that the interface for .diff()
doesn't match the rest of Sage.

I'll fix this and post a patch when I find the time. That will be this
evening, or sometime tomorrow.

Thanks.

Burcin

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Blue Sage logo

2009-03-17 Thread David Møller Hansen

Can any one post a high res version of the blue Sage logo used on the
front page and here in the google forums?

There is a dedicated logo section on the wiki.

I would like to use it as the logo for a sage.app produced with the
SageMacApplication guide.

Thanks

/David



--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---