emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Mixing Python2 and Python3 blocks in one file


From: Ken Mankoff
Subject: Re: [O] Mixing Python2 and Python3 blocks in one file
Date: Thu, 19 May 2016 09:18:50 -0400
User-agent: mu4e 0.9.17; emacs 24.5.1

Hi Will,

Thanks for the example. This makes conda + Org work better than it has for me 
in the past. Unfortunately, one major issues is editing and running code 
outside of Org via (org-edit-special). Perhaps elpy will support conda 
environments soon.

On 2016-05-18 at 23:37, William Henney <address@hidden> wrote:
> #+BEGIN_SRC python :python ~/anaconda/envs/myenv/bin/python :results
> verbatim
> import sys
> return sys.path
> #+END_SRC

Anyway, for those of us using IPython, the following also works:

#+BEGIN_SRC python :python ./myenv/bin/ipython --pylab=osx --pdb --nosep 
--classic --no-banner --no-confirm-exit
print(np.__version__)
#+END_SRC

  -k.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]