[sage-support] sage TeXmacs plugin doesn't work

2010-08-05 Thread Oscar Gerardo Lazo Arjona

I've downloaded the file:

http://www.sagemath.org:9001/TeXmacs?action=AttachFile&do=view&target=texmacs-sage.tar.gz

and extracted it in
~/.TeXmacs/plugins

as the instructions say (in http://www.sagemath.org:9001/TeXmacs)

but when I start TeXmacs there is no SAGE option in Insert -> Session .

The TeXmacs page in the wiki does not mention who the author of this 
plugin is, so I thought I'd mail here hoping that the author (or someone 
who uses TeXmacs - sage) is watching.


thanks!

Oscar.

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


[sage-support] installing mayavi2/ets

2010-08-05 Thread Jorge E . ´Sanchez Sanchez

Dear Jaap,

I am upgrading my sage installation and because I would need to rebuild the ets 
spkg. So, I would like to know if your upgrade offer is still open.

> To: sage-support@googlegroups.com
> From: j.sp...@hccnet.nl
> Subject: [sage-support] Re: problems installing mayavi2/ets
> Date: Thu, 22 Apr 2010 21:30:21 +0200
> 
...
> If there is any interest I could eventually upgrade this spkg to ets-3.4.0
> if I find some time.
> 
> Jaap
> 
> 
> 
Thank you very much in advance
Jorge

  

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


[sage-support] Re: Point-set topology in sage?

2010-08-05 Thread kcrisman


On Aug 5, 11:13 am, Simon King  wrote:
> Hi kcrisman,
>
> On 5 Aug., 16:51, kcrisman  wrote:
>
> > I think we do have some support for persistent homology type stuff.
>
> Do you mean the "persistent group cohomology" that is part of the
> optional p_group_cohomology package? While the basic concept of that
> notion was inspired by persistent homology of point clouds, it is
> purely algebraic. So, no use in topology, as much as I can see.
>

I was thinking of your packages, but didn't realize it had no
connection to the sage/homology stuff (this is standard Sage, for
Alec, see for instance 
http://hg.sagemath.org/sage-main/file/426be7b253ad/sage/homology).
Sorry for the confusion.

Anyway, clearly there is lots of room for improvement here, but we do
at least have some homology - maybe jhpalmieri knows whether it would
be particularly easy to get other stuff (like persistence) out of it.
But basic point-set, not yet there.

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


[sage-support] Re: Point-set topology in sage?

2010-08-05 Thread Simon King
Hi kcrisman,

On 5 Aug., 16:51, kcrisman  wrote:
> I think we do have some support for persistent homology type stuff.

Do you mean the "persistent group cohomology" that is part of the
optional p_group_cohomology package? While the basic concept of that
notion was inspired by persistent homology of point clouds, it is
purely algebraic. So, no use in topology, as much as I can see.

Or do you mean something else?

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


[sage-support] Fwd: Console and editor in the notebook

2010-08-05 Thread Maurizio
Hi all,
I'm forwarding this message to sage-support as well, because I could
get no support on sage-notebook. I hope you don't consider this as
spam, I would just like to hear some comments. Eventually I'll try on
sage-devel :)
Thanks

Maurizio


-- Forwarded message --
From: Maurizio 
Date: 3 Ago, 19:26
Subject: Console and editor in the notebook
To: sage-notebook


Hi all,
I'd like to kindly ask for some support.
I'd like to try an experiment with the notebook. My aim is to create a
new python function, something like:

file_editor(filename)

which would open a new browser windows (like a popup), which contains
two main elements which are fixed in the html layout:
1) a file editor, containing the filename specified (let's say, a
script named "my_script.sage") which is opened, or created if not
existing, into the DATA folder of the worksheet; it provides syntax
highlighting and (possibly) tab-completion
2) an interactive console, composed of a one-line input and some lines
of output, like if it were a live sage session opened. it should also
provide facilities like tab-completion. That console should be
attached to the same SAGE session opened in the worksheet where the
"file_editor" command has been called, so have the same globals, etc..

The problem is: I know how to open a popup, and I used the edit mode
of the file attached to the notebook as a template for having a box
with syntax highlighting using codemirror (so the necessary javascript
library is already there). I don't know how to create a simil-console
in the way I descripted it: I would like to keep it quite simple, so I
don't know if it is possible to create something like a single-line
cell, and how to send the input to the SAGE console and to get the
result back. Moreover, I don't know how to reach the same SAGE session
that is operating in the calling worksheet. Can you help me with this?
I had a look at the notebook_lib.js file, but I am not sure which
methods to focus on.

Regarding the editor, where do I find the "save" methods already
present in the notebook? Moreover, I'd like to have a couple of
buttons with the editor (I know how to make a toolbar, by the way),
which are:
1) save file (shortcut F5)
2) save file and run it (shortcut, maybe CTRL+F5)
3) run selected code in the console (shortcut F9)
... something similar to this

Finally, I'm considering to also show the output of the console (or
that of the script), as the output of the cell in the original
worksheet.

Thanks for any kind of support. If you can point me to something
similar already existing, or to some specific documentation, I'll be
happy. I already had a look 
athttp://www.sagemath.org/doc/reference/sagenb/simple/twist.html
I'm wondering if there's some similar doc for existing javascript
functions.

Regards

Maurizio

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


[sage-support] Re: problem with installation ??

2010-08-05 Thread kcrisman
Dear Julien,

You should probably check out http://www.sagemath.org/download-linux.html
.  For instance, a 32-bit Ubuntu 10.04 build seems to be available at
e.g. 
http://ftp.sh.cvut.cz/MIRRORS/sagemath/linux/32bit/sage-4.5-linux-32bit-ubuntu_10.04_lts-i686-Linux.tar.lzma
if the Czech Republic is close to your computer.

The package manager is probably downloading the Sage that was included
in Debian - a long time ago.  This version of Sage is nearly two years
old, and things have progressed VERY rapidly since then.  I recommend
just downloading one appropriate for your computer and using it, or
building from source (which is so easy even I can do it).

Notwithstanding, this error does seem weird, but it is unlikely anyone
is going to try to track down a bug from that old of a version (since
upgrading requires only a download).  However, if you run into it with
a recent version, PLEASE reply back to this thread.  Thank you, and I
hope it works out great!

- kcrisman

On Aug 4, 2:50 pm, julien  wrote:
> Thanks so much for the quick help !!!
> I am running sage on ubuntu,
> First I downloaded the version from the package installer in ubuntu.
> (Synaptic package manager, package sage)
> and because I had troubles, i decided to download the lastes version
> for ubuntu on the website of sage.
> (but I am not so sure which of the two versions I am actually running
> now, I guess the second one, if i did the install procedure correctly
> [I copied the directory in /opt/ nad then made a symbolic link with
> the ln command])
>
> but still the same problem.
> it appears to be version 3.0.5, see bellow also the test. (I can do
> 2+2, and start a maxima console  I can even plot a circle actually)
>
> jul...@harvardo:~$ sage
> --
> | SAGE Version 3.0.5, Release Date: 2008-07-11                       |
> | Type notebook() for the GUI, and license() for information.        |
> --
>
> sage:
> sage:
> sage: 2+2
> 4
> sage: maxima_console()
>
> Maxima 5.17.1http://maxima.sourceforge.net
> Using Lisp GNU Common Lisp (GCL) GCL 2.6.7 (aka GCL)
> Distributed under the GNU Public License. See the file COPYING.
> Dedicated to the memory of William Schelter.
> The function bug_report() provides bug reporting information.
> (%i1)
>
> On Aug 4, 1:31 pm, kcrisman  wrote:
>
>
>
> > Dear Julien,
>
> > Thank you for trying Sage.  You appear to be using a rather old
> > version, and it is usually very easy to download a newer one.  Can you
> > give us some more specific information about what version it is, where
> > you downloaded it, what OS you are on, and so forth?
>
> > What seems to be happening is that there is a simplification called
> > which has done something grotesque, giving an error that usually
> > happens with unmatched parentheses and the like.  With more info, this
> > might help us track down why this is happening to you.
>
> > Also, if you can do
>
> > sage: 2+2
> > 4
>
> > that is a good sign!  What happens if you do the following? (It should
> > bring up a new subprogram, which you can quit with Ctrl+D.)
>
> > sage: maxima_console()
>
> > Thanks, and hope we can help you!
>
> > - kcrisman
>
> > On Aug 4, 12:31 pm, julien  wrote:
>
> > > Hello, I am completely new to Sage.. but I am so excited, it looks
> > > like the ultimate tool !!!
> > > Unfortunately, I have already big problems from the beginning...
>
> > > I cannot just plot x^2 
> > > here is the kind of error I get 
>
> > > any ideas 
> > > thnaks so much for your help !!
> > > Julien

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


[sage-support] Re: Point-set topology in sage?

2010-08-05 Thread kcrisman
I think we do have some support for persistent homology type stuff.
This isn't exactly point-set topology, though.  Irrespective of which
having interfaces to these things would be great.

- kcrisman

On Aug 5, 9:45 am, Alec Battles  wrote:
> Update: I think the G. Carlsson paper, Topology and Data, is quite a
> find. Thanks for suggesting the link, Justin.
>
> Alec

-- 
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] Re: Point-set topology in sage?

2010-08-05 Thread Alec Battles
Update: I think the G. Carlsson paper, Topology and Data, is quite a
find. Thanks for suggesting the link, Justin.

Alec

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


[sage-support] Re: sage much slower than ipython

2010-08-05 Thread Rajeev
>
> Can you try doing
>
> sage: preparser(False)
>
sage: preparser(False)
sage: from layered_ising_mc import layered_ising_mc
sage: a = layered_ising_mc(n=16, J_p=20, h=19.94, beta=0.5)
sage: a.set_initial_condition()
sage: time data = a.monte_carlo(1000); a.check_consistency()
CPU times: user 40.59 s, sys: 0.02 s, total: 40.61 s
Wall time: 41.68 s

That seems OK now.

-- 
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] Re: Point-set topology in sage?

2010-08-05 Thread Alec Battles
Thanks. It looks promising. My earlier search didn't yield anything.

Alec

On Thu, Aug 5, 2010 at 2:13 PM, Justin C. Walker  wrote:
>
> On Jul 29, 2010, at 06:12 , Alec Battles wrote:
>
>> Not specifically, no, but orms.mfo.de (an excellent list with frequent
>> updates) lists 9 projects under topology. I will do some digging
>> later, but feel free to help me search.
>
> The following might be of interest, but I know nothing about it (other than
> the website):
>   
>
> Justin
>
> --
> Justin C. Walker, Curmudgeon-At-Large
> Director
> Institute for the Enhancement of the Director's Income
> 
> "Weaseling out of things is what separates us from the animals.
>  Well, except the weasel."
>      - Homer J Simpson
> 
>
>
> --
> 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
>

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


[sage-support] Re: sage much slower than ipython

2010-08-05 Thread Jason Grout

On 8/5/10 12:10 AM, Rajeev wrote:

Hi,

I was very surprised to find that sage is much slower than ipython for
doing the same numerical task (monte carlo simulation using numpy
arrays). Following is summary of the time taken -

In [1]: from layered_ising_mc import layered_ising_mc

In [2]: a = layered_ising_mc(n=16, J_p=20, h=19.94, beta=0.5)

In [3]: a.set_initial_condition()

In [4]: time data = a.monte_carlo(1000); a.check_consistency()
CPU times: user 16.89 s, sys: 0.03 s, total: 16.93 s
Wall time: 17.43 s


sage: from layered_ising_mc import layered_ising_mc
sage: a = layered_ising_mc(n=16, J_p=20, h=19.94, beta=0.5)
sage: a.set_initial_condition()
sage: time data = a.monte_carlo(1000); a.check_consistency()
CPU times: user 191.94 s, sys: 0.11 s, total: 192.04 s
Wall time: 194.03 s

I was surprised that the difference is a factor of 10. I hope I am not
comparing apples to oranges.



Can you try doing

sage: preparser(False)

and then rerunning the Sage test?  My guess is that the slowness has to 
do with using Sage's more correct, but slower integers and real numbers.


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


[sage-support] sage much slower than ipython

2010-08-05 Thread Rajeev
Hi,

I was very surprised to find that sage is much slower than ipython for
doing the same numerical task (monte carlo simulation using numpy
arrays). Following is summary of the time taken -

In [1]: from layered_ising_mc import layered_ising_mc

In [2]: a = layered_ising_mc(n=16, J_p=20, h=19.94, beta=0.5)

In [3]: a.set_initial_condition()

In [4]: time data = a.monte_carlo(1000); a.check_consistency()
CPU times: user 16.89 s, sys: 0.03 s, total: 16.93 s
Wall time: 17.43 s


sage: from layered_ising_mc import layered_ising_mc
sage: a = layered_ising_mc(n=16, J_p=20, h=19.94, beta=0.5)
sage: a.set_initial_condition()
sage: time data = a.monte_carlo(1000); a.check_consistency()
CPU times: user 191.94 s, sys: 0.11 s, total: 192.04 s
Wall time: 194.03 s

I was surprised that the difference is a factor of 10. I hope I am not
comparing apples to oranges.

Best wishes,
Rajeev

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