Re: [sage-devel] header files in hgignore
I think they're generated by Cython to interface with external C code. According to http://docs.cython.org/src/userguide/external_C_code.html#public-declarations, these files are autogenerated and thus we shouldn't need to include them David On Fri, Jun 8, 2012 at 2:28 PM, R. Andrew Ohana wrote: > Can someone please tell me why we ship the sage spkg with these files but > also have them in hgignore: > > sage/rings/integer.h > sage/rings/rational.h > sage/rings/complex_double.h > sage/rings/complex_double_api.h > sage/misc/allocator.h > sage/symbolic/pynac.h > sage/modular/arithgroup/farey_symbol.h > > When I was testing, it seemed like only needed the last one to actually > build a usable copy of the sage library. > > -- > Andrew > > -- > To post to this group, send an email to sage-devel@googlegroups.com > To unsubscribe from this group, send an email to > sage-devel+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-devel > URL: http://www.sagemath.org > -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] humble sage-mode feature requests
On Jun 8, 2012, at 11:30 AM, Martin Albrecht wrote: > Hi, > > I am not sure where to send these, but I figured the following would > be rather nice: Here is fine, or you could open tickets either on trac (cc me--iandrus) or open issues on https://bitbucket.org/gvol/sage-mode/ > - Sage mode (at least in my setup) is bound to one Sage instance. But > if one plays with SPKGs one may have many. Hence, if sage-mode could > figure out the copy of Sage to use automatically, or I could set it > once per session, that'd be great. I'm not sure how much work this would take. It might be as simple as setting `sage-command` to a buffer local variable when you visit a file. Certainly you could set it globally in `sage-mode-hook` and the last one would win. I'm most worried about how this would interface with the sage shell since you wouldn't want to send Sage 5 code to a Sage 4 shell. I think python-mode.el supports multiple versions of pythons runnings, but to my knowledge neither the current python.el, nor fgallina's, supports this. > - sage-test is awesome. Can we perhaps add something like: > fix-this-doctest-failure? It would replace the expected line with the > line one got. It would help to fix the trivial stuff. Of course, it > should be handled with care etc. but it would make things nicer. That's a good idea. We already have `sage --fixdoctests` so this would just be a more granular form of that. I created issue on bitbucket if you want to follow them. I'll try to get to them (especially the second) soon, but I can't make any promises. There is some cleanup that I need to do first. https://bitbucket.org/gvol/sage-mode/issue/3/support-multiple-versions-of-sage https://bitbucket.org/gvol/sage-mode/issue/2/add-sage-fix-doctest-at-point -Ivan -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Online Sage Cell Canvas
Over the last day or two, I drew up a (very, very rough) proof-of-concept of an easy way to author webpages with Sage code and explanations. I've put up my attempts here: http://sage.math.washington.edu/home/jason/cellcanvas/ At this point, I'm hoping that some javascript/CSS wizard will take over and make it really nice :). The code is here: https://github.com/jasongrout/sagecell/tree/cellcanvas/contrib/cellcanvas Thanks, Jason -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Online Sage Cell Canvas
That's pretty amazing. I put in a \mathbb{Q} into a text box but after freezing the page it turned into a plain Q. And I created a box by mistake and could not get rid of it -- is there a way? This is with chrome on ubuntu 12.04. I don't know how to save the frozen page (which is not exactly frozen, it would let me go on editing cells! John On 9 June 2012 17:28, Jason Grout wrote: > Over the last day or two, I drew up a (very, very rough) proof-of-concept of > an easy way to author webpages with Sage code and explanations. I've put up > my attempts here: > > http://sage.math.washington.edu/home/jason/cellcanvas/ > > At this point, I'm hoping that some javascript/CSS wizard will take over and > make it really nice :). The code is here: > > https://github.com/jasongrout/sagecell/tree/cellcanvas/contrib/cellcanvas > > Thanks, > > Jason > > -- > To post to this group, send an email to sage-devel@googlegroups.com > To unsubscribe from this group, send an email to > sage-devel+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-devel > URL: http://www.sagemath.org -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: Online Sage Cell Canvas
On 6/9/12 12:30 PM, John Cremona wrote: That's pretty amazing. I put in a \mathbb{Q} into a text box but after freezing the page it turned into a plain Q. It seems to be a much harder problem to get MathJax to work on pages that are generated totally in the browser. It's possible that we might have to have something from the server involved here. And I created a box by mistake and could not get rid of it -- is there a way? No (not yet). This is with chrome on ubuntu 12.04. I don't know how to save the frozen page (which is not exactly frozen, it would let me go on editing cells! Cells can still be edited, but if you refresh the page, it will go back to the way it was. It's frozen in the sense that you can't add more cells or move around cells, and you can't edit the text cells. Thanks, Jason -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Re: Article of interest: A Multi-Language Computing Environment for Literate Programming and Reproducible Research
On Tue, Jun 5, 2012 at 7:44 PM, Jason Grout wrote: > To be fair, though the notebook allows for code and documentation to be > intermixed, it's not the traditional literate programming tool that allows > you to, on the one hand, produce nice documentation, but on the other hand, > produce a single runnable file. And it's a far cry from something like > noweb, that can reorder your code when it "tangles". > > The ipython notebook is closer to this, since you guys explicitly export to > a python file, and also export (or will export) other formats that nicely > present everything. And to me that's very deliberate. I've never really liked 'real' literate programming in that the very concept of it is completely batch oriented: you write code and text in one place, then you run it via something that produces a program to be then executed. Even though the results look often excellent, my preferences are firmly set on the mathematica/ipython/sage/etc approach that keeps you working *inside* the environment where you *execute* the code. I want to have my objects in memory while I play with them, refining each cell as I go and gradually molding the code into what I need as I both refine the code and understand the problem better based on the results. It's possible that some of the newer literate programming environments from the R people have changed in this regard, I have to admit I haven't followed that world very closely. But the classic sweave approach is most definitely *not* my cup of tea, and not something we're trying to emulate in any way in IPython. We do make it possible to produce importable code automatically from a notebook (and have ideas on how to improve that further), and our latex, rst, html, etc conversion machinery slowly but surely is improving, so I'm not saying that we have something that we consider finished and ready. But I do have a pretty clear vision of the kind of computational environment we're trying to create (and one where the parallel extensions fit very naturally in a way that I don't find in these other models and which I think is increasingly important). cheers, f -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: Online Sage Cell Canvas
On 6/9/12 12:30 PM, John Cremona wrote: I put in a \mathbb{Q} into a text box but after freezing the page it turned into a plain Q. Davide Cervone gave me a tip which got MathJax in the frozen page working now... Thanks, Jason -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: Online Sage Cell Canvas
Jason Grout writes: > Over the last day or two, I drew up a (very, very rough) > proof-of-concept of an easy way to author webpages with Sage code and > explanations. I've put up my attempts here: > > http://sage.math.washington.edu/home/jason/cellcanvas/ This is cool! I am wondering, though - why do you use Markdown and not reStructuredText for text boxes? Besides being the markup language in which we write Sage docstrings, rst is a standard in the Python world in general too... -Keshav Join us in #sagemath on irc.freenode.net ! -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org