[sage-support] plot the solution obtained from desolve_system

2013-07-10 Thread Flavio Coelho
Hi, I am trying to plot the solutions the following system of ODEs var('t') A = function('A',t) B = function('B',t) de1 = diff(A,t) == -k1*A+k2*B de2 = diff(B,t) == k1*A-k2*B sol = desolve_system([de1,de2],[A,B],ics=[500,0]) show(sol) solA, solB = sol[0].rhs(), sol[1].rhs() plot((solA,solB),(t,0,

[sage-support] Re: ANN: OpenOpt 0.31, FuncDesigner 0.21, DerApproximator 0.21

2010-09-15 Thread Flavio Coelho
Good news, but I just checked PyPI (via easy_install) and it is still pointing to version 0.28 of openopt. Please upload the latest versions. On Sep 15, 6:18 am, dmitrey wrote: > Hi all, > > I'm glad to inform you about new releases of our completely free (BSD > license) Python-written software

[sage-support] Re: Notebook (4.3.3) hanging whan combining cython and timeit modes in a cell

2010-03-06 Thread Flavio Coelho
Thanks! On Mar 6, 6:36 pm, William Stein wrote: > On Sat, Mar 6, 2010 at 3:49 AM, Flavio Coelho wrote: > > After installing sage 4.3.3, the cell evaluation hangs indefinetly if > > I combine %cython and %timeit  modes. > > > if I remove the %timeit the cell executes nor

[sage-support] Notebook (4.3.3) hanging whan combining cython and timeit modes in a cell

2010-03-06 Thread Flavio Coelho
After installing sage 4.3.3, the cell evaluation hangs indefinetly if I combine %cython and %timeit modes. if I remove the %timeit the cell executes normally. anyone else can confirm this behavior? Is there any quick fix? I want to benchmark the execution of cython block of code, without the %t

[sage-support] numerical ODE solving and Cython

2010-03-03 Thread Flavio Coelho
Hi, I really liked the method for speeding numerical integration of ODES presented in the sage documentation. However, it uses the GSL solver instead of the scipy.integrate.odeint I normally use. I tried to apply the same methodology but I can't get past this error: ValueError: object too deep

[sage-support] Re: random number generation from cython

2009-11-04 Thread Flavio Coelho
f randstate.pyx didn't mention explicitly that the RNG from libc is of poor quality and to be avoided. Moreover, by using the RNG built into Python, I guarantee reproducibility across platforms (I think) and avoid external dependencies... On 3 nov, 15:55, Jason Grout wrote: > Flavio Coelh

[sage-support] random number generation from cython

2009-11-03 Thread Flavio Coelho
Hi, anyone know how could I access the Python's builtin mersenne twister random number generator from Cython? I'd like to generate random numbers in the interval [0,1[ faster than by calling random.random(). I know the implementation of random.random is in C, but there is the cost of a python ca

[sage-support] Re: latex issue after upgrading to 4.2

2009-11-02 Thread Flavio Coelho
Thanks, that fixed it. I Downloaded the fonts and unpacked them to the ~/.fonts/ directory. On Oct 30, 4:43 pm, Jason Grout wrote: > ma...@mendelu.cz wrote: > > > On 30 říj, 13:30, Flavio Coelho wrote: > >> I forgot to mention my platform: > > >> Ubuntu

[sage-support] Re: latex issue after upgrading to 4.2

2009-10-30 Thread Flavio Coelho
re?http://www.math.union.edu/~dpvc/jsMath/jsMath-lab.html Yes! but I have the jsMath fonts installed in my system. Is there anything else I have to do? > > Robert > > On 30 říj, 13:30, Flavio Coelho wrote: > > > I forgot to mention my platform: > > > Ubuntu Karmic K

[sage-support] Re: latex issue after upgrading to 4.2

2009-10-30 Thread Flavio Coelho
fonts/image for symbols/Uicode chars. No problem also > sagenb.org. > > Do you use Firefox or other browser. Linux or Windows? > > (btw. you have eta instead of \eta in first equation) > > Robert > > On 30 říj, 11:57, Flavio Coelho wrote: > > > Hi, I have jus

[sage-support] latex issue after upgrading to 4.2

2009-10-30 Thread Flavio Coelho
Hi, I have just upgraded to 4.2 and I am having problem with LaTeX typesetting in text cells. greek letters are not typeset but otherwise, the rest of the latex is formatted normally. here is one of my latex expressions: $$ \begin{eqnarray} \lambda&= & \beta(I+eta A)\\ \frac{dS}{dt} &=& \mu - (\

[sage-support] Re: Matlab like Workspace for Sage

2009-09-30 Thread Flavio Coelho
I personally think the Matlab interface, mimicked by spyder, would not work well from the browser. Flávio On 29 Set, 19:53, William Stein wrote: > On Tue, Sep 29, 2009 at 11:48 AM, Mike Hansen wrote: > > > Hello, > > > On Wed, Sep 30, 2009 at 1:34 AM, Umut wrote: > > >> Hi, > >> is there anyo

[sage-support] Re: exporting worksheets without data

2009-09-29 Thread Flavio Coelho
Answering my own question: I can share only the worksheet.txt from within the .sws package. Should there be a way to export only the source code? Maybe also as a .tex file (sagetex enabled?) thanks, Flávio On Sep 29, 12:34 pm, Flavio Coelho wrote: > When exporting a worksheet, is ther

[sage-support] exporting worksheets without data

2009-09-29 Thread Flavio Coelho
When exporting a worksheet, is there a way the exclude files from the DATA directory from the packaging, in order to reduce the resulting .sws file size? Naturally I could go to the data directory and delete them by hand before exporting, but it is a bit of a hassle. >From the notebook interface

[sage-support] Re: setuptools vs. Distribute

2009-09-29 Thread Flavio Coelho
ith Distribute requiring replacement by the equivalent distribute_setup.py Flávio On Sep 29, 11:43 am, William Stein wrote: > On Tue, Sep 29, 2009 at 3:25 AM, Flavio Coelho wrote: > > > Hi, > > > what the opinion of Sage developers regarding the fork from setuptools >

[sage-support] Re: installing packages with setuptools

2009-09-29 Thread Flavio Coelho
: > On Tue, Sep 29, 2009 at 3:19 AM, Flavio Coelho wrote: > > > Hi, > > > is there an equivalent to: > > > ./sage -python -m easy_install -U BIP > > > which can be run from within Sage? > > What abou

[sage-support] setuptools vs. Distribute

2009-09-29 Thread Flavio Coelho
Hi, what the opinion of Sage developers regarding the fork from setuptools ==> Distribute? http://pypi.python.org/pypi/distribute/0.6.3 >From what I have heard so far, setuptools will no longer be developed and Distribute already supports all setuptools features and runs on py3k as well. Will

[sage-support] installing packages with setuptools

2009-09-29 Thread Flavio Coelho
Hi, is there an equivalent to: ./sage -python -m easy_install -U BIP which can be run from within Sage? Thanks, Flávio --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-s

[sage-support] Re: Loading pickles dumped from within a notebook

2009-08-24 Thread Flavio Coelho
Thanks Robert, I did not know about the DATA variable. It seems, however, that I must explicitly dump the pickles into DATA, otherwise they end up in another directory. thanks, Flávio On 24 ago, 19:14, Robert Bradshaw wrote: > On Mon, 24 Aug 2009, Flavio Coelho wrote: > > >

[sage-support] Re: Loading pickles dumped from within a notebook

2009-08-24 Thread Flavio Coelho
rest of the calcuations, and then the the data is reloaded bit-by-bit to create plots. On 24 ago, 18:59, Robert Bradshaw wrote: > On Mon, 24 Aug 2009, Flavio Coelho wrote: > > > Hi, > > > I am porting a python script to a notebook and in my script I save > > some data as

[sage-support] Loading pickles dumped from within a notebook

2009-08-24 Thread Flavio Coelho
Hi, I am porting a python script to a notebook and in my script a save some data as pickles which are loaded later for further processing. I noticed that when I dump the pickles on a cell, I get a link to the dumped pickle which looks like this: http://localhost:8000/home/admin/5/cells/12/week_

[sage-support] Loading pickles dumped from within a notebook

2009-08-24 Thread Flavio Coelho
Hi, I am porting a python script to a notebook and in my script I save some data as pickles which are loaded later for further processing. I noticed that when I dump the pickles on a cell, I get a link to the dumped pickle which looks like this: http://localhost:8000/home/admin/5/cells/12/week_

[sage-support] %pdb not working?

2009-04-23 Thread Flavio Coelho
Hi, what is the curently recomended way to debug code from within a notebook? I found %pdb (as suggested in documentation) does not work in 3.4. Also the standard python way: "import pdb;pdb.run(call)" also does not work. thanks Flávio --~--~-~--~~~---~--~~ To p

[sage-support] Re: scipy compatibility

2009-04-23 Thread Flavio Coelho
fixed. Maybe the solution to this may bring us closer to a general solution for the incompatibility between sage types and Numpy/Scipy's. I'll post this error to the numpy list and see what kind of response I get. Flávio On 23 abr, 12:21, Flavio Coelho wrote: > On 23 abr, 11:47,

[sage-support] Re: scipy compatibility

2009-04-23 Thread Flavio Coelho
On 23 abr, 11:47, William Stein wrote: > > > I tried to run the same module via load instead of import, but load > > was trying to load from the ~/.sage directory instead of the directory > > where I started sage, (is this a bug?). > > No. then the "How to use the Sage Notebook" help page sho

[sage-support] Re: scipy compatibility

2009-04-23 Thread Flavio Coelho
2009 at 7:19 AM, Flavio Coelho wrote: > > >> Hi > > >> anyone know why this simple  python code fails in sage? > > >> from scipy import stats > >> stats.uniform(0,15).ppf([0.5,0.7]) > > >> This has been a show stopper for me as need to do sta

[sage-support] Re: scipy compatibility

2009-04-23 Thread Flavio Coelho
aths instead of only filenames? Flávio On 22 abr, 15:55, William Stein wrote: > On Wed, Apr 22, 2009 at 7:19 AM, Flavio Coelho wrote: > > > Hi > > > anyone know why this simple  python code fails in sage? > > > from scipy import stats > > stats.uniform(0,15).ppf(

[sage-support] scipy compatibility

2009-04-22 Thread Flavio Coelho
Hi anyone know why this simple python code fails in sage? from scipy import stats stats.uniform(0,15).ppf([0.5,0.7]) This has been a show stopper for me as need to do statistics... thanks, Flávio --~--~-~--~~~---~--~~ To post to this group, send email to sage-

[sage-support] Re: array cannot be safely cast to required type

2009-04-16 Thread Flavio Coelho
I wonder if it would be possible, when in python mode: "%python", Sage would revert to use standard python (and numpy) types. I can now replicate my previous bug report with just a line of python (excluding the import): %python from scipy import stats stats.randint(0,23).ppf(3) I don't see why

[sage-support] Re: building sage from Mercurial clone

2009-04-14 Thread Flavio Coelho
Thanks! On 10 abr, 15:13, William Stein wrote: > On Fri, Apr 10, 2009 at 6:53 AM,FlavioCoelho wrote: > > > Thanks, > > > So it seems that there is no (easy or otherwise) way to build from > > latest development tree, only from the last "stable" source tarball. > > The latest development version

[sage-support] Re: building sage from Mercurial clone

2009-04-10 Thread Flavio Coelho
Thanks, So it seems that there is no (easy or otherwise) way to build from latest development tree, only from the last "stable" source tarball. That's what I was hoping for. On 9 abr, 18:15, Robert Bradshaw wrote: > On Apr 9, 2009, at 7:41 AM, Flavio Coelho wrote: >

[sage-support] building sage from Mercurial clone

2009-04-09 Thread Flavio Coelho
Hi, I cloned Sage from the mercrial repository (hg.sagemath.org) but found no building instructions. I want to build it inplace. The install script complains that I must provide a sage root and if I give the current directory, '.', it spits back the following traceback: Traceback (most recent ca

[sage-support] Re: adoption of Django debug reporting [feature request]

2009-04-09 Thread Flavio Coelho
12:17, David Joyner wrote: > >> My first question is, can you implement this yourself > >> (assuming you have django installed along with sage)? > > >> On Thu, Apr 9, 2009 at 6:55 AM, Flavio Coelho wrote: > > >> > Hi, > > >> > I have a feature r

[sage-support] Re: adoption of Django debug reporting [feature request]

2009-04-09 Thread Flavio Coelho
is). did this answer your question? On 9 abr, 12:17, David Joyner wrote: > My first question is, can you implement this yourself > (assuming you have django installed along with sage)? > > On Thu, Apr 9, 2009 at 6:55 AM, Flavio Coelho wrote: > > > Hi, > > > I have

[sage-support] Re: array cannot be safely cast to required type

2009-04-09 Thread Flavio Coelho
I had already bumped against this type compatibility problem, which I solved by turning off sage's preparser: preparser(False) However, this error won't go away when the preparser is turned off. Flávio On 9 abr, 11:45, Robert Bradshaw wrote: > On Apr 9, 2009, at 3:34 AM, Flavio

[sage-support] adoption of Django debug reporting [feature request]

2009-04-09 Thread Flavio Coelho
Hi, I have a feature request for Sage Notebook interface: It is the adoption of the debugging capabilities present in the Django framework. An image here is worth a thousand words: http://thoughtandtheory.com/blog/wp-content/uploads/2007/10/fbml_beta.jpg When django catches an error it creates

[sage-support] array cannot be safely cast to required type

2009-04-09 Thread Flavio Coelho
Hi I having trouble with running code within sage which runs perfectly in straight Python: import scipy.stats as stats import numpy def lhsFromSample(sample,siz=100): """ Latin Hypercube Sample from a set of values :Parameters: - `sample`: list, tuple of array - `siz

[sage-support] Re: %r in notebook

2009-04-08 Thread Flavio Coelho
Thanks for the patch, I'll clone the mercurial source tree so that I can test it. Currently I only have the last sage binary installed... Flávio On 7 abr, 20:41, William Stein wrote: > On Tue, Apr 7, 2009 at 6:34 AM, Flavio Coelho wrote: > > > Another manifestatio

[sage-support] Typecasting issue

2009-04-07 Thread Flavio Coelho
Hi, I am having a problem with some python code which runs perfectly in straight python, bout fails inside sage, with the following error message: Traceback (click to the left for traceback) ... TypeError: array cannot be safely cast to required type Traceback (most recent call last): File

[sage-support] Re: feature request

2009-04-07 Thread Flavio Coelho
; That said, it's a better idea to post your request here on sage- > support. That way, more Sage developers will see it, and might be > inspired to implement the feature you're after; and if the feature > does exist, but in a nonobvious way, we can point you to where t

[sage-support] Re: %r in notebook

2009-04-07 Thread Flavio Coelho
Another manifestation of the same bug: http://groups.google.com/group/sage-support/browse_thread/thread/3440b5303fb7585e/5d3f7e31381c1647?lnk=gst&q=Flavio+Coelho#5d3f7e31381c1647 On 6 abr, 20:55, gerhard wrote: > Something appears broken in the notebook r interface > > From the

[sage-support] feature request

2009-04-07 Thread Flavio Coelho
Hi, what is the official channel for feature requests? I checked the trac site but the ticket system doesn't allow anonymous users to create new tickets. thanks, --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscrib

[sage-support] Re: Importing modules and packages from gobal python install

2009-03-16 Thread Flavio Coelho
t;sage -python" instead of "python" in the > installation instructions and explicitly giving the Sage root > directory. If you give the names of the packages you're looking to use > with Sage, I (or we) can try it on my machine. > > On Mar 16, 6:26 am, Flavio Coelho

[sage-support] Importing modules and packages from gobal python install

2009-03-16 Thread Flavio Coelho
Hi, I want to have sage let me import from my global python installation, since I have packages installed there which are not available as sage packages. Is this possible? thanks in advance, Flávio --~--~-~--~~~---~--~~ To post to this group, send email to sage-s

[sage-support] rpy bug in 3.4

2009-03-16 Thread Flavio Coelho
Hi, I just upgraded to 3.4 via sage -upgrade I wanted to recommend Sage to colleagues which use R, since R doesn't have any thing like the sage Notebook. However after starting a new worksheet and setting the sage notebook to evaluate all cells as R (via pull-down menu) I got the following error:

[sage-support] Re: sage 3.3 where to get it?

2009-02-16 Thread Flavio Coelho
nd release candidate is likely to become the final 3.3.  I > > would guess that will happen sometime in the next week, hopefully in a > > day or two. > > Well, you didn't answer the question, did you? > > > I don't remember ever having this many alphas, its a big r

[sage-support] sage 3.3 where to get it?

2009-02-14 Thread Flavio Coelho
Hi, I want to download sage 3.3 to test and try the new features. Where can I download it from? thanks, Flávio --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-uns

[sage-support] Sage install damaged my Global R configuration

2008-12-02 Thread Flavio Coelho
Hi, a recent sage installation damaged my global R installation. now, every time I try to install a package within R I get the following error message: cannot open file '/home/was/build/sage-3.1.4/local/lib/R/doc/ CRAN_mirrors.csv', reason 'Ficheiro ou directoria inexistente' sage must have ch

[sage-support] Re: Editing html on notebooks

2008-12-01 Thread Flavio Coelho
en reads this list.  I am also looking forward to having > that functionality. > > You can track the status of this > at:http://trac.sagemath.org/sage_trac/ticket/4267 > > -M. Hampton > > On Nov 30, 6:13 am, Flavio Coelho <[EMAIL PROTECTED]> wrote: > > > Hi, > &

[sage-support] Editing html on notebooks

2008-11-30 Thread Flavio Coelho
Hi, I would like to know if there is plans to allow direct editing of the html on a notebook without having to go to the "Edit" tab and entering html there. I was thinking it would be nice to have a simple javascript html editor that would come up when one clicks on text outside eveluation boxes