emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Sagemath with org-babel?


From: John Hendy
Subject: Re: [O] Sagemath with org-babel?
Date: Tue, 4 Nov 2014 22:58:19 -0600


On Nov 4, 2014 9:06 PM, "Brady Trainor" <address@hidden> wrote:
>
> John Hendy <address@hidden> writes:
>
> > (require 'sage-mode)
>
> Thank you, this enabled me to at least have sage code blocks to mix into files for blog publishing.
>
> > #+begin_src test.org
> >
> > * header
> >
> > #+begin_src sage
> > print "Hello World"<point>
> > print 2^3
> > #+end_src
> >
> > #+end_src
> >
> > =C-c '= on the block gets me to a typical Org babel buffer, and I can
> > =C-c C-c= in it and get results output to *Sage-main*.
> >
>
> I had to modify org-babel-load-languages to get C-c C-c to do something. But I'm not really sure what it did, or how to get it to work. But maybe this could wait till more people are showing interest here.
>

Oops. Re-reading, that came out ambiguously. I meant from the interactive code editing buffer after C-c ', from *there* I could do C-c C-c. From the org file itself, my result was the same as yours with no babel definition for sage.

Sorry about the confusion!
John

> >> (org-babel-do-load-languages 'org-babel-load-languages
> >>                              '((sage . t)
> >>                                (emacs-lisp . t)
> >>                                (latex . t)
> >>                                (sh . t)))
>
> --
> Brady
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]