[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.
- [O] Division of Org documentation: Org manual and Worg (was: Mixing Python2 and Python3 blocks in one file), (continued)
- [O] Division of Org documentation: Org manual and Worg (was: Mixing Python2 and Python3 blocks in one file), Karl Voit, 2016/05/18
- Re: [O] Division of Org documentation: Org manual and Worg, Daniele Pizzolli, 2016/05/18
- Re: [O] Division of Org documentation: Org manual and Worg, Rasmus, 2016/05/18
- Re: [O] Division of Org documentation: Org manual and Worg, Daniele Pizzolli, 2016/05/18
- Re: [O] Division of Org documentation: Org manual and Worg, Rasmus, 2016/05/18
- Re: [O] Division of Org documentation: Org manual and Worg, Daniele Pizzolli, 2016/05/20
- Re: [O] Division of Org documentation: Org manual and Worg, Rasmus, 2016/05/20
- Re: [O] Division of Org documentation: Org manual and Worg, Daniele Pizzolli, 2016/05/18
- Re: [O] Mixing Python2 and Python3 blocks in one file, Ken Mankoff, 2016/05/18
- Re: [O] Mixing Python2 and Python3 blocks in one file, William Henney, 2016/05/18
- Re: [O] Mixing Python2 and Python3 blocks in one file,
Ken Mankoff <=
- Re: [O] Mixing Python2 and Python3 blocks in one file, William Henney, 2016/05/19
- Re: [O] Mixing Python2 and Python3 blocks in one file, Ken Mankoff, 2016/05/19
- Re: [O] Mixing Python2 and Python3 blocks in one file, William Henney, 2016/05/19