[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Fwd: run python from org, draft
From: |
Andreas Röhler |
Subject: |
Re: [O] Fwd: run python from org, draft |
Date: |
Fri, 29 Mar 2013 15:47:25 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 |
Hi Gary,
> Am 29.03.2013 13:11, schrieb Gary Oberbrunner:
Does this assume org-babel-python-mode is set to 'python-mode? The default
is 'python, I believe. I don't think you should unconditionally
call py-send-string-return-output like that.
Also, why would you avoid calling org-babel-python-evaluate? Where in your
patch would it account for the setting of session, result-type or
result-params?
with current
GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 2.24.14) of 2013-03-05
Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @
MY_PATH/emacs-24.3/lisp/org/)
python from org-source seems completely broken.
For example:
#+BEGIN_SRC python
1+2
#+END_SRC
#+RESULTS:
: None
While the patched ob-python.el at least gives a result.
As attached png shows, a py-shell buffer is visible, which should not.
And some more back-sides. So far following your arguments.
Just wanted to look for the spot where to fix it.
Maybe not the right one yet, just a study.
So let's go on until a convenient solution is found,
Andreas
On Thu, Mar 28, 2013 at 5:55 PM, Andreas Röhler <
address@hidden> wrote:
Hi,
as running python from org-source has been reported broken,
herewith a patch, which allows basic usage.
Requires python-mode.el-6.1
https://launchpad.net/python-**mode/trunk/6.1.1/+download/**
python-mode.el-6.1.1.tar.gz<https://launchpad.net/python-mode/trunk/6.1.1/+download/python-mode.el-6.1.1.tar.gz>
Just a draft, not thought as implementation,
Andreas
ob-python-patched.png
Description: PNG image
- [O] run python from org, draft, Andreas Röhler, 2013/03/28
- Message not available
- [O] Fwd: run python from org, draft, Gary Oberbrunner, 2013/03/29
- Re: [O] Fwd: run python from org, draft,
Andreas Röhler <=
- Re: [O] Fwd: run python from org, draft, John Hendy, 2013/03/29
- Re: [O] Fwd: run python from org, draft, Eric Schulte, 2013/03/29
- Re: [O] Fwd: run python from org, draft, Andreas Röhler, 2013/03/29
- Re: [O] Fwd: run python from org, draft, Eric Schulte, 2013/03/29
- Re: [O] Fwd: run python from org, draft, Andreas Röhler, 2013/03/29
- Re: [O] Fwd: run python from org, draft, Eric Schulte, 2013/03/29
- Re: [O] Fwd: run python from org, draft, Evan Misshula, 2013/03/29
- Re: [O] Fwd: run python from org, draft, Eric Schulte, 2013/03/29
- Re: [O] Fwd: run python from org, draft, Evan Misshula, 2013/03/29
- Message not available
- [O] Fwd: Fwd: run python from org, draft, Gary Oberbrunner, 2013/03/29