emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Van L <van@scratch.space>
To: "Doyley, Marvin M." <m.doyley@rochester.edu>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Problem with python source block
Date: Sat, 26 May 2018 20:00:01 +1000	[thread overview]
Message-ID: <BD3316CF-FCB7-4927-82A9-4802B987798B@scratch.space> (raw)
In-Reply-To: <ED384082-193B-4AC1-8807-8FF984A8D43E@ur.rochester.edu>


> Doyley, Marvin M. writes:
> 
> I get an error

I get a reproduction of your error outside of Emacs and Org Mode.

Adapting an example from the list’s archive, the following works.

#+BEGIN_SRC elisp :results none
  (org-babel-do-load-languages
   'org-babel-load-languages
   '((python . t)))
#+END_SRC

#+BEGIN_SRC python :results output
  a = 5
  b = 16
  print(a + b)

#+END_SRC

#+RESULTS:
: 21

  parent reply	other threads:[~2018-05-26 10:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-26  5:06 Problem with python source block Doyley, Marvin M.
2018-05-26  5:29 ` Thibault Marin
2018-05-26 10:00 ` Van L [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-05-26 13:16 Doyley, Marvin M.
2018-05-26 14:22 ` Doyley, Marvin M.
2018-05-26 15:18   ` John Kitchin
2018-05-26 16:39   ` Doyley, Marvin M.

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=BD3316CF-FCB7-4927-82A9-4802B987798B@scratch.space \
    --to=van@scratch.space \
    --cc=emacs-orgmode@gnu.org \
    --cc=m.doyley@rochester.edu \
    /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).