On Nov 4, 2014 9:06 PM, "Brady Trainor" wrote: > > John Hendy 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" > > 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 > >