From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brady Trainor Subject: Re: Sagemath with org-babel? Date: Tue, 04 Nov 2014 19:05:48 -0800 Message-ID: <87h9yemjn7.fsf@uw.edu> References: <50203b7f.a14dec0a.6450.ffffdea3@mx.google.com> <877fzaob5s.fsf@uw.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlqvB-0005YJ-5L for emacs-orgmode@gnu.org; Tue, 04 Nov 2014 22:06:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xlqv3-0005af-RY for emacs-orgmode@gnu.org; Tue, 04 Nov 2014 22:06:09 -0500 Received: from plane.gmane.org ([80.91.229.3]:45230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlqv3-0005aY-LI for emacs-orgmode@gnu.org; Tue, 04 Nov 2014 22:06:01 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xlqv1-00074m-1v for emacs-orgmode@gnu.org; Wed, 05 Nov 2014 04:05:59 +0100 Received: from 75-149-173-2-washington.hfc.comcastbusiness.net ([75.149.173.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 Nov 2014 04:05:59 +0100 Received: from algebrat by 75-149-173-2-washington.hfc.comcastbusiness.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 Nov 2014 04:05:59 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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. >> (org-babel-do-load-languages 'org-babel-load-languages >> '((sage . t) >> (emacs-lisp . t) >> (latex . t) >> (sh . t))) -- Brady