[sage-devel] SciPy 2010 Tutorials: brainstorming and call for proposals

2010-03-25 Thread Brian Granger
orial content. * A list of Python packages that attendees will need to have installed to follow along. Cheers, Brian Granger SciPy 2010, Tutorial Chair -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+uns

Re: syntax support for _sig_on / _sig_off in cython (Re: [sage-devel] Re: Memory leak)

2010-03-15 Thread Brian Granger
Gonzalo, On Mon, Mar 15, 2010 at 1:17 PM, Gonzalo Tornaria wrote: > On Mon, Mar 15, 2010 at 3:57 PM, Brian Granger > wrote: > > Thanks for describing this better, it helps me to understand what the > > current _sig_on/_sig_off does. Because of the licensing issues, I am >

Re: syntax support for _sig_on / _sig_off in cython (Re: [sage-devel] Re: Memory leak)

2010-03-15 Thread Brian Granger
William, Fantasic, thanks for trying this! Cheers, Brian On Mon, Mar 15, 2010 at 2:02 PM, William Stein wrote: > On Mon, Mar 15, 2010 at 12:57 PM, Brian Granger > wrote: > > Gonzalo, > > On Sun, Mar 14, 2010 at 9:21 PM, Brian Granger > > wrote: > >>

Re: syntax support for _sig_on / _sig_off in cython (Re: [sage-devel] Re: Memory leak)

2010-03-15 Thread Brian Granger
Gonzalo, On Sun, Mar 14, 2010 at 9:21 PM, Brian Granger wrote: > > Gonzalo, > > Thanks for starting this discussion. I am willing to help with this > effort > > as I definitely need this capability. Part of the challenge will be > > figuring out how to do this on W

Re: syntax support for _sig_on / _sig_off in cython (Re: [sage-devel] Re: Memory leak)

2010-03-14 Thread Brian Granger
> no_signals? signals_disabled? This would give something like: > >with no_signals: >... > >with signals_disabled: >... > > The current names in Sage of _sig_on/_sig_off are a bit confusing and the names no_signals or signals_disabled carry forward that confu

Re: syntax support for _sig_on / _sig_off in cython (Re: [sage-devel] Re: Memory leak)

2010-03-14 Thread Brian Granger
Gonzalo, Thanks for starting this discussion. I am willing to help with this effort as I definitely need this capability. Part of the challenge will be figuring out how to do this on Windows. Eventually, I think we do want to capability to be built into Cython. But, while we experiment with di

Re: [sage-devel] Moving _sig_on/_sig_off from Sage to Cython

2010-03-10 Thread Brian Granger
everyone! Brian On Wed, Mar 10, 2010 at 1:10 PM, Ondrej Certik wrote: > On Wed, Mar 10, 2010 at 12:32 PM, Brian Granger > wrote: > > Ondrej, > > > > On Wed, Mar 10, 2010 at 12:25 PM, Ondrej Certik > wrote: > >> > >> On Wed, Mar 10, 2010 at 11:18 A

Re: [sage-devel] Moving _sig_on/_sig_off from Sage to Cython

2010-03-10 Thread Brian Granger
Ondrej, On Wed, Mar 10, 2010 at 12:25 PM, Ondrej Certik wrote: > On Wed, Mar 10, 2010 at 11:18 AM, Robert Bradshaw > wrote: > > On Mar 10, 2010, at 11:01 AM, Brian Granger wrote: > > > >> Hello all, > >> > >> In the older Cython docs here: > &

Re: [sage-devel] Moving _sig_on/_sig_off from Sage to Cython

2010-03-10 Thread Brian Granger
Martin, Thanks for looking at this. things are a slightly more complicated, authors of that code are at least: > > - William Stein (see copyright notice) > - me (I rewrote them to be more efficient, i.e. save a syscall) > - Gonzalo Tornaria (I think he worked on this?) > - David Harvey (hg log br

Re: [sage-devel] Moving _sig_on/_sig_off from Sage to Cython

2010-03-10 Thread Brian Granger
William, Yes. There are other copyright holders though. > > Great, Martin below lists the other copyright holders. I will try to contact everyone and ask. Once we have approval from all authors, can you or someone change the license on those files in the sage trunk? > The relevant code is in

[sage-devel] Moving _sig_on/_sig_off from Sage to Cython

2010-03-10 Thread Brian Granger
Hello all, In the older Cython docs here: http://modular.math.washington.edu/home/was/www/home/gfurnish/old/sage-3.0.6/doc/prog/node55.html The _sig_on and _sig_off macros are mentioned. But, when I try these in current Cython it fails. I found this thread started by Ondrej a few years ago: h

Re: [sage-devel] dream machine ideas

2010-01-24 Thread Brian Granger
Another thing to consider is memory bandwidth. Many calculations these days are memory bandwidth bound, not disk/CPU bound. If you get a single machine with lots of cores and lots of RAM this is more of an issue. The current generation of Intel CPUs (the Xeon 5500's) are better with their triple

[sage-devel] Re: sage notebook servers

2009-10-17 Thread Brian Granger
1. Physics Department, Cal Poly State University, San Luis Obispo 2. Lower division physics courses. Cheers, Brian On Thu, Oct 15, 2009 at 9:18 PM, William Stein wrote: > > Hi, > > For a grant proposal, I would like to assemble a list of people > running Sage notebook servers either publicl

[sage-devel] Re: sage notebook work planning

2009-09-08 Thread Brian Granger
At the same time, I think it would be big mistake to give up easy > WYSIWYG editing of text cells. Is it easy to convert between HTML and > ReST (both directions)? If so, I think it would be easy to make a text > cell toggleable between TinyMCE and a textbox that would let you put in > ReST. > >

[sage-devel] Re: Organizing Sage worksheets: tags or categories?

2009-09-03 Thread Brian Granger
> > Is there any way of organizing worksheets on a Sage notebook > > server? If you have many worksheets, it can be difficult to find them > > and it would be nice to be able to organize them using tags, > > categories or folders. One example of this would be if wanted to > > write a chapter base

[sage-devel] Organizing Sage worksheets: tags or categories?

2009-09-03 Thread Brian Granger
Hi, Is there any way of organizing worksheets on a Sage notebook server? If you have many worksheets, it can be difficult to find them and it would be nice to be able to organize them using tags, categories or folders. One example of this would be if wanted to write a chapter based book using th

[sage-devel] Re: Is there any particular reason why Notebook uses Twisted.Web2 instead of Twisted.Web?

2009-08-31 Thread Brian Granger
> I would expect apache to come with any relatively recent Unix or >> unix-like box. Perhaps it's not installed by default though. (It is on >> Solaris). >> >> I just checked and see the latest Apache is 6.6 MB, so not small, but >> not particularly huge. >> >> Apache really is a standard. I don't

[sage-devel] Re: vtk on Mac

2009-08-26 Thread Brian Granger
> Wait, so is a key point that if one builds Python for Sage as a > framework, then Python is no longer contained in SAGE_ROOT/local/? > Is that what you're saying? I can see numerous problems and > confusion arising as a result. Hopefully it can still be in > SAGE_ROOT/local, and maybe there i

[sage-devel] Re: notebook rewrite

2009-08-23 Thread Brian Granger
William, Thanks for clarifying some of the details of pexpect. I do really want to understand this because I am starting to use the notebook more and currently IPython's parallel stuff works fine (there are a few things that need to be fixed on our side to make it easier though). Moreover, as lo

[sage-devel] Re: notebook rewrite

2009-08-23 Thread Brian Granger
> In the current architecture, a twistd daemon spawns a notebook server > which is responsible for doing "sage" stuff. twistd is fully > asynchronous, but the notebook process itself is a pexpect based > blocking process connected with pipes to twistd. As such, the block > on read by pexpect prec

[sage-devel] Re: vtk fails to build on Mac

2009-06-30 Thread Brian Granger
Ondrej, > Many thanks for this! Some comments below: > >> >> Here is their main page for information about building VisIt: >> >> https://wci.llnl.gov/codes/visit/source.html >> >> Here is the "build_visit" shell script that will build visit from >> source (check it out, it is 1 lines long and

[sage-devel] Re: vtk fails to build on Mac

2009-06-30 Thread Brian Granger
Ondrej, So I heard back from the VisIt devs and thankfully, they keep really good records of how they build everything. What they go through to build VisIt is insane. But here are the references that I think could help you... Here is their main page for information about building VisIt: https

[sage-devel] Re: vtk fails to build on Mac

2009-06-30 Thread Brian Granger
> One important > thing to note is where the Framework goes. It will be installed in > $SAGE_LOCAL/Frameworks. The bin and lib directories (where > executables and site-packages) end up will be subdirectories of this. > You will probably need to point PATH to something like > $SAGE_LOCAL/Framewo

[sage-devel] Re: vtk fails to build on Mac

2009-06-30 Thread Brian Granger
I am attaching my spkg-install script that I have used to generate a Framework build of Python 2.5.1. You might have to tweak it for later versions of Python, but this should get you started. One important thing to note is where the Framework goes. It will be installed in $SAGE_LOCAL/Frameworks.

[sage-devel] Re: vtk fails to build on Mac

2009-06-30 Thread Brian Granger
Ondrej, The traditional way of building VTK on a Mac is to build it as a Cocoa or Carbon library. This means a couple of things: * Python must be built as a framework. * The Mac native GUI is used, not X11. * You are using all of Apples OpenGL libraries. If you stick to these assumptions, gett

[sage-devel] Re: [Sage Bug Report] Wrong matplotlibrc used if user has one in ~/.matplotlib

2009-06-06 Thread Brian Granger
> ah, right, I wasn't understanding your solution (for some reason, I > thought you were using what we used before, not a new variable pointing > to a new directory). > > +1 to your solution (I'd rather use your more standard directory name > over William's non-standard name). It is important to

[sage-devel] Re: [Sage Bug Report] Wrong matplotlibrc used if user has one in ~/.matplotlib

2009-06-06 Thread Brian Granger
> This sounds great.  However, what do we do about every sage install that > exists out there right now?  Every .sage directory already has a > matplotlibrc file that throws warnings with the current matplotlibrc. > Back when the decision was made, some ideas were kicked around: > > 1. Make a FAQ

[sage-devel] Re: [Sage Bug Report] Wrong matplotlibrc used if user has one in ~/.matplotlib

2009-06-06 Thread Brian Granger
>> But, wait, does SAGE_HOME point to $HOME/.sage by default?  That is >> the right place for this, I just don't remember exactly where >> SAGE_HOME points. > > Yep, it does.  We can make sure easily enough by running Sage and asking: > > sage: DOT_SAGE > '/Users/wstein/.sage/' > > By the way, I j

[sage-devel] Re: [Sage Bug Report] Wrong matplotlibrc used if user has one in ~/.matplotlib

2009-06-06 Thread Brian Granger
> I want to reopen this thread. Great! matplotlib under Sage is still broken for me because of this issue - I would love to see this resolved. > I have a build farm with many (nearly 20) different OS's that all build and > test > Sage in parallel.  My home directory on each of those machines i

[sage-devel] Re: [Sage Bug Report] Wrong matplotlibrc used if user has one in ~/.matplotlib

2009-05-19 Thread Brian Granger
> I agree that there still is a problem.  Before, I didn't think that > Sage's matplotlib would need to have different options to even be able > to function. The problem that I am running into is that my ~./matplotlib/matplotlibrc sets a backend (macosx) that the Sage matplotlib doesn't have. Th

[sage-devel] Re: [Sage Bug Report] Wrong matplotlibrc used if user has one in ~/.matplotlib

2009-05-18 Thread Brian Granger
> Details are here: http://trac.sagemath.org/sage_trac/ticket/4774 I have skimmed though this as well as the previous thread on this topic. But, it still seems like the original problem remains (Sage's matplotlib using the wrong matplotlibrc) even though Sage no longer includes its own matplotli

[sage-devel] Re: [Sage Bug Report] Wrong matplotlibrc used if user has one in ~/.matplotlib

2009-05-18 Thread Brian Granger
OK On Mon, May 18, 2009 at 3:31 PM, Michael Abshoff wrote: > > Hi Brian, > > no need to CC me on bug reports you send to sage-devel. > > Cheers, > > Michael > > > > --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscr

[sage-devel] Re: [Sage Bug Report] [possibly?] sage -sh problems on OS X

2009-05-18 Thread Brian Granger
> Well I don't like it.   So it sounds like a bug to me. OK thanks. Could you or someone with a Sage Trac account create a ticket for this? Oh, and Ondrej tried this on Linux but did not see this bug. Cheers, Brian --~--~-~--~~~---~--~~ To post to this group,

[sage-devel] Re: [Sage Bug Report] Wrong matplotlibrc used if user has one in ~/.matplotlib

2009-05-18 Thread Brian Granger
58 PM, Ondrej Certik wrote: > > On Mon, May 18, 2009 at 2:51 PM, Brian Granger > wrote: >> >> Currently: >> >> IF a user has matplotlib installed outside of Sage >> AND they have a matplotlibrc file in ~/.matplotlib >> >> THEN Sage will use the

[sage-devel] [Sage Bug Report] [possibly?] sage -sh problems on OS X

2009-05-18 Thread Brian Granger
Hi, I want to use sage -sh to have my environment variables setup properly. But on OS X sage -sh behaves in a very odd manner. * /Users/bgranger/Sage/sage appears multiple times. * The bin directory of Sage in put after some of my bin directories, making it so Sage's version of things are not u

[sage-devel] [Sage Bug Report] Wrong matplotlibrc used if user has one in ~/.matplotlib

2009-05-18 Thread Brian Granger
Currently: IF a user has matplotlib installed outside of Sage AND they have a matplotlibrc file in ~/.matplotlib THEN Sage will use the non-Sage version in ~/.matplotlib/matplotlibrc. If a user has set a frontend (such as WxAgg or any other GUI frontend) that Sage doesn't have (most of them), m

[sage-devel] Re: Sage Horizon (comments)

2009-05-18 Thread Brian Granger
> Are the custom libraries going to be .spkg as well? So, people using the > full version of Sage can install them? Yes, definitely. Brian --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send

[sage-devel] Re: Sage Horizon (comments)

2009-05-18 Thread Brian Granger
> Not right now.  I'm sure Michael Abshoff would agree that we are way > too busy just dealing with Sage itself. OK, I am not surprised - Sage is an ambitious undertaking. > However, note that there are two versions *right now* -- Sage and SPD > -- and that this is not in any way increasing my w

[sage-devel] Re: Sage Horizon (comments)

2009-05-18 Thread Brian Granger
> Yep, I know you need a trac account and I haven't gotten around to it. > I discussed the patches with Ondrej yesterday in IRC and I would > prefer if you posted them here since last time Ondrej found bugs in > Sage's scripts it turned out mostly to be bugs in the way Ondrej used > them. I don't

[sage-devel] Re: Sage Horizon (comments)

2009-05-18 Thread Brian Granger
>From a development perspective, it makes no sense to have two separate projects (Sage/SPD). In working on SPD, I have already run into small bugs in Sage's infrastructure. Currently, we have to fix such things in both SPD and Sage and manage the respective tickets/patches for both projects. Th

[sage-devel] Re: Notebook server as a separate python package?

2009-05-15 Thread Brian Granger
That is exactly what Ondrej (he has done most of the work) and I are going with spdproject (Source Python Distribution): http://code.google.com/p/spdproject/ We are just getting started, but we do have a base packages that includes: numpy scipy ipython sympy the sage notebook twisted/zope.inter

[sage-devel] Re: Using --enable-framework on Mac OS X?

2009-05-14 Thread Brian Granger
> As is Sage doesn't even build if you do a straight up framework build. > This can and will be fixed, but if I have learned one thing about > FrameWorks on OSX is to avoid them whenever possible, i.e that > absolute crap issue with the IOKit and libpng has scared me for > life ;) What are the cu

[sage-devel] Re: Clarification of Sage and GPL

2009-05-13 Thread Brian Granger
> I apologize for the way I presented this. No offense was intended for > anybody. I won't follow up in sage-flame, because it was never my > intention to start a flame (I don't think this discussion has turned > into a flame yet, neither by me or others, but I can see it has the > potential to be

[sage-devel] Re: Using --enable-framework on Mac OS X?

2009-05-13 Thread Brian Granger
I just pinged the pythonmac-sig group about why and when a framework build is actually needed. A while back I created an spkg for qt/pyqt and I remember that I needed to do a framework build to get it to work. My recollection is that if you want Python to be able to do anything with the native M

[sage-devel] Re: notebook and sage in path

2009-05-13 Thread Brian Granger
> Well, I think what we should do is merge as much of SPD into Sage as > possible to lessen the maintainance burden. One thing I could see here > is to define SAGE_EXECUTABLE and you would just set it to spd in your > code. I think this is a good idea. I think if SPD is kept separate, it will en

[sage-devel] Re: notebook and sage in path

2009-05-13 Thread Brian Granger
>> The build bits do not exist in ipython, but I think ipython should >> have some good web notebook. > > Sure, competition is good for business. I just don't think this code > is currently a priority for them and judging from the current > discussion about getting 0.10 out the door I don't see an

[sage-devel] Re: Clarification of Sage and GPL

2009-05-07 Thread Brian Granger
> Indeed... but the OP claimed that a jpeg couldn't be a derived work of > gimp because it's not a C++ program, which is a non sequitur. Do you actually think a JPEG is a derived for of GIMP or do you disagree with how I was arguing? If you merely disagree with my argument, please don't misquote

[sage-devel] Re: Clarification of Sage and GPL

2009-05-07 Thread Brian Granger
>> sage-ultralight must have the same name as sage.  Then you get into >> copyright/trademark related issues (the name "sage" is already taken). >>  Just the same I could create a GUI toolkit named "Qt" that was also >> released under the SACL license, but you can guess what would happen. > > Inco

[sage-devel] Re: Clarification of Sage and GPL

2009-05-07 Thread Brian Granger
>> I disagree.  A jpeg or .doc file is not source code in any sense of >> the word, thus the GPL is completely irrelevant (I think we agree on >> that). > > That simply isn't so. To quote the GPL: > "This License applies to any program or other work ..." > "The "Program", below, refers to any such

[sage-devel] Re: Clarification of Sage and GPL

2009-05-07 Thread Brian Granger
> Note: this is a light-hearted response to a topic which I consider > very grave.  It's been claimed that the script > > from sage import Integer > print Integer(2)+Integer(2) > > must be GPL'd.   I claim that the above is a sage-ultralight script. > I've attached an independent implementation of

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
> Licensing discussions just suck and are a waste of time. Sigh Yes, I fully a agree with youexcept when people learn new things about the GPL. I think some important things have come out of this discussion: * A notebook/Worksheet is source code and can potentially be a derivative work

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
At the beginning of this thread, someone posted a link to the Sage worksheet: http://abstract.ups.edu/sage-aata.html That is 1) being publicly distributed and 2) is not being released under the GPL. Plus, anyone can create an account on the public Sage notebook servers, so basically any workshe

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
William, Thanks for your replies. I mostly want to know what the consensus interpretation of these issues is amongst the Sage devs. Slowly, I am getting a picture of what this consensus looks like. > Publicly distributed code using GPL'd library must be GPL'd. Great, to first order that is my

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
> It is interesting I think that of the two interpretations of the GPL > represented by the many people in this thread, it seems that > there are those in the "Rosen camp" as described in > http://www.linuxjournal.com/article/6366, http://www.rosenlaw.com/lj19.htm > (Rosen is general counsel of OS

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
Michael, Thank you for bringing up this issue as it does clarify some aspect of Sage derived code and licensing. But, in my mind, the "sage as interpreter" aspect is a small perturbation on top of the zero-order: Sage = Python + GPL libraries That is, for the most part, I view the interpreter

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
> When you create something (book, photo, program) you automatically > have a copyright in/on that work. Yep. > You may control the creation of > copies.  With a GPL/GFDL license you explicitly grant others further > freedoms - someone may make unlimited copies.  They may make > modifications.  

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
> I claim this is still silly. Then I think you think the GPL is silly and I agree with you :-) > Did you actually load Sage to write the > above two lines?  Or did you just type two lines in your email program? >  (My guess is the latter).  So why in the world would the license for > Sage affec

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
> Obviously everyone understands this differently. But I thought that if > I have a script A: > > --- > from sage.all import x > print x**2 > --- > > Then my script has to be GPL, because it is dynamically loading a GPL > library (without any runtime exception) *and* my script doesn't work

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
> The runtime exception is to allow the use of the gcc runtime, which is > a library gcc links to your code when you need to produce a program > which runs. AFAICT, if you replaced the gcc runtime with something > else, or you just used the object files compiled by gcc (no linking), > you wouldn't

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
> Sage functions in a simailr way that GIMP does. If I create an image in > GIMP from scratch then I own the copyright to that image. The license of GIMP, > which functions as an editor,  a viewer, has it's own plugins for > postprocessing, ... > have nothing to do with it. GIMP is written in a p

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
Brian, > A sage worksheet is no more a derived work of Sage than a jpeg would > be a derived work of Photoshop/GIMP or a .doc file would be a derived > work of MS Office or OpenOffice. I disagree. A jpeg or .doc file is not source code in any sense of the word, thus the GPL is completely irrele

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
> How is it a derived work of Sage?  That argument seems to lead to the > conclusion that my C code would be considered a derived work of GCC. Your GCC compiled code is a derived work and that (in my understanding) is why there exists the so called "runtime exception" to the GPL that covers this

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
> The Sage worksheet at > > http://abstract.ups.edu/sage-aata.html > > contains Sage code that was not written in a notebook.  While that > could be obvious if you actually looked at the file, technically I > think there is no way to prove just where I wrote it - notebook or > not. Regardless of

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
>> At a conference in the last year, one of the Sage developers was asked >> this question, and their answer was... >> >> "You can do whatever you want with your code, you don't have to >> release it under the GPL" > I'm pretty sure that is correct. > http://www.gnu.org/licenses/gpl-faq.html#CanI

[sage-devel] Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
Hi, I have a question about Sage and the GPL. Here is the main question.. IF I write code in a Sage notebook, AND I redistribute the code, do I need to release my code under the GPL? Here is a bit of background... At a conference in the last year, one of the Sage developers was asked this que

[sage-devel] Re: Wolfram Alpha and Google (Trendalyzer)

2009-05-01 Thread Brian Granger
Personally, I think it is important to have access to source code. I do in fact read the source code of Sage (and many other projects) often. However, many people with whom I speak (user's of Matlab and Mathematica) don't feel this is important. Their logic goes something like this... "I have

[sage-devel] Re: C++ and Cython

2009-04-27 Thread Brian Granger
>> it'd be nice to have some easier way to handle C++ subclasses in >> Cython. I don't know how it should be done though. > > Good point. If we can declare inheritance information, I believe we > can use the same type infrastructure we use for cdef classes to > handle this smootly. I second this.

[sage-devel] Re: sagelite

2009-04-15 Thread Brian Granger
> It also includes all the sage interfaces (e.g. to matlab, etc.), and > other interesting code.  We don't want to restrict it just to the > notebook.  We may also include, e.g., all our 2d and maybe 3d plotting > code, which is very lightweight too. Ahh, very nice, this completely makes sense.

[sage-devel] Re: sagelite

2009-04-15 Thread Brian Granger
I agree that this is really great, but isn't the name a bit confusing? Why not sagenotebook? Brian On Wed, Apr 15, 2009 at 2:26 PM, Ondrej Certik wrote: > > Hi, > > William and Mike has created the sagelite, which is just the Sage > notebook, without any other Sage dependencies. > > http://tra

[sage-devel] Re: jsmath problems in notebook

2009-04-07 Thread Brian Granger
I did that, restarted Sage and my Browser. The ugly message has gone away, but I still don't see pretty equations ;-( Is there something else I need to do? Brian On Tue, Apr 7, 2009 at 2:17 PM, William Stein wrote: > > On Tue, Apr 7, 2009 at 12:55 PM, Brian Granger > w

[sage-devel] Re: Notebook problem with sympy

2009-04-07 Thread Brian Granger
> That seems awfully complicated.  How about (untested): > > sage_python = python > from sympy import * > python = sage_python > > or (even shorter, and still untested): > > from sympy import * > restore('python') Sure these may work, but in my mind they are temporary hacks. > The %whatever synt

[sage-devel] jsmath problems in notebook

2009-04-07 Thread Brian Granger
Hi, I am using Sage 3.2.3 on my Mac (localhost notebook server). When I load a notebook that has latex in it I get: "It looks like jsMath failed to set up properly (error code -7). I will try to keep going, but it could get ugly." The thing that is odd is that when I load a notebook from the s

[sage-devel] Re: Notebook problem with sympy

2009-04-07 Thread Brian Granger
bug in sage though. Brian On Tue, Apr 7, 2009 at 12:04 PM, Ondrej Certik wrote: > > On Tue, Apr 7, 2009 at 11:01 AM, Brian Granger > wrote: >> >> Hi, >> >> I am using the sage 3.2.3 notebook.  I am using it in python mode and >> am having trouble with symp

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

2009-04-07 Thread Brian Granger
I just independently found this bug (I just posted to the list). The problem seems to be with the line: from sympy import * line that both of us are using in python mode. Brian On Fri, Apr 3, 2009 at 8:11 AM, Ondrej Certik wrote: > > On Fri, Apr 3, 2009 at 8:04 AM, William Stein wrote: >> >

[sage-devel] Notebook problem with sympy

2009-04-07 Thread Brian Granger
Hi, I am using the sage 3.2.3 notebook. I am using it in python mode and am having trouble with sympy: from sympy import * x = var('x') Traceback (most recent call last): File "", line 1, in File "/Users/bgranger/.sage/sage_notebook/worksheets/admin/1/code/9.py", line 6, in print _su

[sage-devel] Re: creating notebook spkg

2009-03-30 Thread Brian Granger
Nice! What are the dependencies fir this? On Mon, Mar 30, 2009 at 7:56 PM, Ondrej Certik wrote: > > On Mon, Mar 30, 2009 at 7:29 PM, William Stein wrote: >> >> On Mon, Mar 30, 2009 at 5:54 PM, Ondrej Certik wrote: >>> >>> Hi, >>> >>> I was looking a bit at what actually has to be done to get

[sage-devel] Re: spkg dependencies

2009-02-27 Thread Brian Granger
>> >  * just don't call it Sage >> >> I won't. But, we will give Sage credit :) > Yes, absolutely. I just wanted to make sure no one slabbed BSD license > headers on top of scripts I have significantly contributed to without > asking (and I did not think of you in that case, but there are other

[sage-devel] Re: instructions how to host sage notebook

2009-02-23 Thread Brian Granger
> I'm curious: is there any chance that you'll use JMOL as a 3d molecular > viewer?  I've been curious about any uses in Sage of JMOL for its > original intended purpose. This is a great idea. I am working with Ondrej on this project and there is not reason we can't do this. Currently, we don't

[sage-devel] Re: parallel computation

2008-05-20 Thread Brian Granger
> IPython1 is a Python library that Sage ships that builds on MPI. > Maybe Fernando or Brian (who I've just cc'd) can comment. > We also build on Twisted, which is somewhat relevant for > certain types of problems.. A few comments along these lines: - mpi these days is actually really easy to bu

[sage-devel] Re: [Cython] [sage-devel] Re: Locally scoped dynamic memory (in SAGE and elsewhere)

2008-04-10 Thread Brian Granger
> Sure and it is certainly good to be discussed. I didn't want to be > dismissive about the idea, it is just that I have been in the "debugging > memory leaks in Cython extension" trenches for the last eight months and > hence I do not trust python or its memory management at all any more. >

[sage-devel] Re: [Cython] [sage-devel] Re: Locally scoped dynamic memory (in SAGE and elsewhere)

2008-04-10 Thread Brian Granger
> Just for the record, I think Brian isn't suggesting we do anything > differently with Sage. He's writing lots of _new_ code using > Cython for his distributed matrix arrays project, and ran into this problem, > and thought -- surely the Sage folks have solved this. Then he looked > at our

[sage-devel] Re: [Cython] Locally scoped dynamic memory (in SAGE and elsewhere)

2008-04-10 Thread Brian Granger
> Well, in the end you end up using sbrk() anyway, but I don't see what is > wrong with malloc itself? sage_malloc was introduced a while back to > make it possible to switch to a slab allocator like omalloc potentially > to see if there is any benefit from it. And that makes sense. > Abso

[sage-devel] Re: Locally scoped dynamic memory (in SAGE and elsewhere)

2008-04-10 Thread Brian Granger
> It's I think a general problem not only in Python but in programming > in general. The authors of http://www.flintlib.org/ -- a pure C library -- > spent a lot of time worrying about this, just to I think decide that it's > a really hard problem. Very true. > That said, there is definite

[sage-devel] Re: [Cython] Locally scoped dynamic memory (in SAGE and elsewhere)

2008-04-10 Thread Brian Granger
On Thu, Apr 10, 2008 at 10:27 AM, Michael.Abshoff <[EMAIL PROTECTED]> wrote: > Brian Granger wrote: > > > Hi, > > > > Hi Brian, > > > > > (dual posted to sage and cython) > > > > A few of us (ipython and mpi4py devs) are wondering what

[sage-devel] Re: Locally scoped dynamic memory (in SAGE and elsewhere)

2008-04-10 Thread Brian Granger
> > Lisandro Dalcin (author of mpi4py) came up with the following trick > > that, while more complicated, prevents memory leaks: > > > > cdef extern from "Python.h": > > object PyString_FromStringAndSize(char*,Py_ssize_t) > > char* PyString_AS_STRING(object) > > > > cdef inline

[sage-devel] Locally scoped dynamic memory (in SAGE and elsewhere)

2008-04-10 Thread Brian Granger
Hi, (dual posted to sage and cython) A few of us (ipython and mpi4py devs) are wondering what the best/safest way of allocating dynamic memory in a local scope (method/function) is when using cython. An example would be if you need an array of c ints that is locally scoped. The big question is

[sage-devel] Re: Fast algorithm for computing multiplicative integer partitions

2008-01-24 Thread Brian Granger
> I think Tom just meant the above as a hint to answer the question > "where would we begin looking to see if this algorithm is known already?" > Sloane's tables of integer sequences: > http://www.research.att.com/~njas/sequences/ > contain a _lot_ of references to the literature and research.

[sage-devel] Re: Fast algorithm for computing multiplicative integer partitions

2008-01-24 Thread Brian Granger
> > Question: where would we begin looking to see if this algorithm is > > known already? > > > Let a(m,n) be the number of multiplicative partitions of integers into m > parts. > > For m fixed, compute a(m,n) for n = 3,4,5... and search for this sequence in > Sloane's encyclopedia. > > And, le

[sage-devel] Fast algorithm for computing multiplicative integer partitions

2008-01-24 Thread Brian Granger
your thoughts on this one. Here is the code (BSD licensed, authors, Brian Granger and Dan Karipedes): def divisors_minmax(n, dmin, dmax): """Find the divisors of n in the interval (dmin,dmax].""" i = dmin+1 while i<=dmax: if n % i == 0:

[sage-devel] Re: Multiplicative partitions of integers in python

2008-01-23 Thread Brian Granger
Here is a brute force version. I simply compute the divisors and then try multiplying size of them together. If the result is the original number, I keep it. For the small values of n and size that I deal with this is fast enough, but it would be nice to have something that scales well (algorit

[sage-devel] Re: Multiplicative partitions of integers in python

2008-01-23 Thread Brian Granger
oach also eliminates duplicates entries where the factors > >>> are swapped. > >>> > >>> Hope that helps. > >>> > >>> > >> Sorry, I missed the post where you clarified that you weren't just > >> looking for factor pairs. There&

[sage-devel] Re: Multiplicative partitions of integers in python

2008-01-23 Thread Brian Granger
> Quick important question: How big is the positive integer n? > I.e., is factoring integers an important difficulty? In what I am doing n is the number of processors an array is distributed over. Thus, n scales with the number of dollars a user has spend on their cluster :) This will tend to k

[sage-devel] Re: Multiplicative partitions of integers in python

2008-01-23 Thread Brian Granger
nd yes, it does sound like this ends up being a factor tree or sorts. But not exactly, I just sketched the tree and it is more like the set of all possible factor trees. Brian > -Jake > > > -Jake > > > >> On 23/01/2008, Brian Granger <[EMAIL PROTECTED]> wrote: > >&g

[sage-devel] Re: Multiplicative partitions of integers in python

2008-01-23 Thread Brian Granger
e your example) can compute things for size=2. I am trying to figure out how to generalize to arbitrary size. Brian > where of course you could eliminate the cases d=1, d=n and so on. > > John > > > On 23/01/2008, Brian Granger <[EMAIL PROTECTED]> wrote: > > >

[sage-devel] Multiplicative partitions of integers in python

2008-01-23 Thread Brian Granger
Hi, I am working on a parallel/distributed array library for python/ipython. For this library I need to be able to compute the multiplicative partitions of positive integers: 12 => (2,6), (3,4) A few questions about this: 1) Is there a good algorithm for computing these. I can think of silly

[sage-devel] Re: Where are the up-to-date spkgs?

2007-07-11 Thread Brian Granger
> I got swamped by teaching, SAGE Days 4, SIMUW, and... buying a house > this week (!), so I haven't been able to move anything forward. > Fortunately, I have no formal responsibilities for the next two > months, so a lot is likely to happen in the near future. Nice! > My plan is to start workin

[sage-devel] Where are the up-to-date spkgs?

2007-07-11 Thread Brian Granger
Hi, I now have someone here at my company that is going to help maintain spkgs. We have a number of spkgs that i) SAGE currently doesn't have and ii) SAGE does have but we have updated or added bug fixes. A while back there was agreement on a new standard format for what the structure of an spk

[sage-devel] Re: spkg refactoring and development model

2007-06-22 Thread Brian Granger
This is a great summary of all spkg things! This should definitely be put into the SAGE docs somewhere. Brian On 6/22/07, didier deshommes <[EMAIL PROTECTED]> wrote: > > [Apologies, I hit "Send" too soon] > > I'm not sure how to write this since it seems to be so "easy" to me. > I'll start from

[sage-devel] Re: spkg refactoring and development model

2007-06-19 Thread Brian Granger
Thanks, this does clarify what goes on in an update. > The sage-update script gives an idea of how sage is upgraded from a > SAGE_SERVER: > - download the new install script > - download the new list file. The list file contains all spkgs with > their version numbers. It is from it that sage kno

[sage-devel] Re: spkg refactoring and development model

2007-06-19 Thread Brian Granger
> On 6/18/07, Brian Granger <[EMAIL PROTECTED]> wrote: > > I didn't know SAGE was actually using them. Is this when sage -update > > is run? My understanding is that the decision to upgrade something > > was based on the timestamps if the files compared wi

  1   2   >