From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Alsinet Subject: Re: Python with org-mode Date: Sat, 30 Mar 2019 10:16:33 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000075f8f40585514615" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:52694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAFr7-0007Hh-NG for emacs-orgmode@gnu.org; Sat, 30 Mar 2019 11:25:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hAFka-00081a-Hr for emacs-orgmode@gnu.org; Sat, 30 Mar 2019 11:18:36 -0400 Received: from mail-ot1-f47.google.com ([209.85.210.47]:47010) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hAFkJ-0007Cp-5V for emacs-orgmode@gnu.org; Sat, 30 Mar 2019 11:18:18 -0400 Received: by mail-ot1-f47.google.com with SMTP id s24so4681309otk.13 for ; Sat, 30 Mar 2019 08:16:45 -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: Lawrence Bottorff Cc: emacs-orgmode Mailinglist --00000000000075f8f40585514615 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Lawrence, It depends on what you want to do. Anaconda is a python distribution intended for data science and machine learning, so if you want to work on machine learning, it provides an easy way to install all the required packages for that. You can use any python distribution with org-mode, you just have to tell org-babel the path to the python interpreter you want to use. I would suggest that you pick a project, an application you want to make, and start from there. I am currently making an application using python and org-mode, which consists of a single org document and has ~170 python source blocks. It is a simple podcast database, I am just doing it to try the literary programming style in python. You can check it out here , the only problem is that the document is in spanish, my native language. In this application I have leveraged python's import feature, so that I write small functions (each in their corresponding source code block) which I tangle into files and import from other blocks. This allows the document to have a logical structure as a document, with sections for each module, and also being able to call any block from any other. If you have any doubts or need help starting out, don't hesitate to contact me, I would be happy to help you. Mart=C3=ADn On Fri, Mar 29, 2019 at 10:38 PM Lawrence Bottorff wrote: > I've seen many "start using Python" parades, but what is the best way to > use Python with org-mode, i.e., in babel source blocks? I'm on U18.10, > which comes with standard 2 (2.7.15+) and 3 (3.6.7). But then I keep > hearing about Anaconda. Your opinions, experiences, please. > > LB > --00000000000075f8f40585514615 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Lawrence,

It depends on what you want t= o do. Anaconda is a python distribution intended for data science and machi= ne learning, so if you want to work on machine learning, it provides an eas= y way to install all the required packages for that. You can use any python= distribution with org-mode, you just have to tell org-babel the path to th= e python interpreter you want to use.

I would sugg= est that you pick a project, an application you want to make, and start fro= m there. I am currently making an application using python and org-mode, wh= ich consists of a single org document and has ~170 python source blocks. It= is a simple podcast database, I am just doing it to try the literary progr= amming style in python. You can check it out here, the only problem is t= hat the document is in spanish, my native language.

In this application I have leveraged python's import feature, so that= I write small functions (each in their corresponding source code block) wh= ich I tangle into files and import from other blocks. This allows the docum= ent to have a logical structure as a document, with sections for each modul= e, and also being able to call any block from any other.

If you have any doubts or need help starting out, don't hesitate= to contact me, I would be happy to help you.


=
Mart=C3=ADn

On Fri, Mar 29, 2019 at 10:38 PM Lawrence Bot= torff <borgauf@gm= ail.com> wrote:
I've seen many "start using Python"= parades, but what is the best way to use Python with org-mode, i.e., in ba= bel source blocks? I'm on U18.10, which comes with standard 2 (2.7.15+)= and 3 (3.6.7). But then I keep hearing about Anaconda. Your opinions, expe= riences, please.

LB
--00000000000075f8f40585514615--