From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: Mixing Python2 and Python3 blocks in one file Date: Thu, 19 May 2016 09:18:50 -0400 Message-ID: References: <2016-05-08T10-21-00@devnull.Karl-Voit.at> <2016-05-17T16-45-38@devnull.Karl-Voit.at> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3Nqp-0006Y2-Uq for emacs-orgmode@gnu.org; Thu, 19 May 2016 09:19:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b3Nqo-0001pH-3Y for emacs-orgmode@gnu.org; Thu, 19 May 2016 09:18:54 -0400 Received: from mail-qg0-x229.google.com ([2607:f8b0:400d:c04::229]:34597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3Nqn-0001p2-RS for emacs-orgmode@gnu.org; Thu, 19 May 2016 09:18:54 -0400 Received: by mail-qg0-x229.google.com with SMTP id 90so42847910qgz.1 for ; Thu, 19 May 2016 06:18:53 -0700 (PDT) In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: William Henney Cc: Karl Voit , emacs-org 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 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.