emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Martin Alsinet <martin@alsinet.com.ar>
To: Lawrence Bottorff <borgauf@gmail.com>
Cc: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: Python with org-mode
Date: Sat, 30 Mar 2019 10:16:33 -0500	[thread overview]
Message-ID: <CABUJmkC-w3Td2Jyd=bqj1df76ERX6j=a+kEX_yRhRzBpTXRhFw@mail.gmail.com> (raw)
In-Reply-To: <CAFAhFSUHkH=SNVB7CZ6WsVf92DPGpSHTxdF_mPOh9r_FKMjYFQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1743 bytes --]

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
<https://github.com/martinalsinet/podcast-db>, 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ín

On Fri, Mar 29, 2019 at 10:38 PM Lawrence Bottorff <borgauf@gmail.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 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
>

[-- Attachment #2: Type: text/html, Size: 2312 bytes --]

  parent reply	other threads:[~2019-03-30 15:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-30  3:18 Python with org-mode Lawrence Bottorff
2019-03-30  7:40 ` richardfieldsend
2019-03-30 15:16 ` Martin Alsinet [this message]
2019-03-30 18:10   ` Martin Schöön

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CABUJmkC-w3Td2Jyd=bqj1df76ERX6j=a+kEX_yRhRzBpTXRhFw@mail.gmail.com' \
    --to=martin@alsinet.com.ar \
    --cc=borgauf@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).