emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Brady Trainor <algebrat@uw.edu>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Sagemath with org-babel?
Date: Tue, 4 Nov 2014 22:58:19 -0600	[thread overview]
Message-ID: <CA+M2ft-iePVmfbZPtO2Lea84FiphodqBE_Sa26j+MYEBGUb-Mg@mail.gmail.com> (raw)
In-Reply-To: <87h9yemjn7.fsf@uw.edu>

[-- Attachment #1: Type: text/plain, Size: 1281 bytes --]

On Nov 4, 2014 9:06 PM, "Brady Trainor" <algebrat@uw.edu> wrote:
>
> John Hendy <jw.hendy@gmail.com> 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
>
>

[-- Attachment #2: Type: text/html, Size: 1945 bytes --]

      reply	other threads:[~2014-11-05  4:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-06 19:31 Sagemath with org-babel? Johan Ekh
2012-08-06 21:33 ` Thomas S. Dye
2012-08-06 21:47   ` Darlan Cavalcante Moreira
2014-11-04 22:26     ` Brady Trainor
2014-11-05  0:36       ` John Hendy
2014-11-05  3:05         ` Brady Trainor
2014-11-05  4:58           ` John Hendy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+M2ft-iePVmfbZPtO2Lea84FiphodqBE_Sa26j+MYEBGUb-Mg@mail.gmail.com \
    --to=jw.hendy@gmail.com \
    --cc=algebrat@uw.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).