[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] python/babel inline images
From: |
Mikhail Titov |
Subject: |
Re: [O] python/babel inline images |
Date: |
Tue, 5 Jun 2012 19:59:46 -0500 |
> -----Original Message-----
> From: address@hidden [mailto:emacs-orgmode-
> address@hidden On Behalf Of Eric Schulte
> Sent: Tuesday, June 05, 2012 9:57 AM
> To: henry atting
> Cc: address@hidden
> Subject: Re: [O] python/babel inline images
>
> I'm not python expert, but the code block should be run in your current
> directory, e.g., the following outputs the current working path expected
> for me.
>
> #+begin_src sh
> pwd
> #+end_src
>
> If you want to explicitly pass the current directory to your code block
> as an argument, you could try something like the following
>
> #+begin_src python :var mydir=(file-name-directory (buffer-file-name))
> return mydir
> #+end_src
>
I've noticed some inconsistency between various languages in this aspect.
For instance, ob-R starts session in proper working directory, while all
looks like everything (?) else does not.
Should not it be somewhat standardized? I think it make sense to always cd
to org doc folder.
M.
Re: [O] python/babel inline images,
Mikhail Titov <=
- Re: [O] python/babel inline images, Eric Schulte, 2012/06/06
- [O] [babel] session initialization (was RE: python/babel inline images), Mikhail Titov, 2012/06/06
- Re: [O] [babel] session initialization (was RE: python/babel inline images), Eric Schulte, 2012/06/06
- Re: [O] [babel] session initialization (was RE: python/babel inline images), Mikhail Titov, 2012/06/06
- Re: [O] [babel] session initialization (was RE: python/babel inline images), Mikhail Titov, 2012/06/06
- Re: [O] [babel] session initialization (was RE: python/babel inline images), Mikhail Titov, 2012/06/07
- Re: [O] [babel] session initialization (was RE: python/babel inline images), Eric Schulte, 2012/06/07
- Re: [O] [babel] session initialization (was RE: python/babel inline images), Mikhail Titov, 2012/06/07
- Re: [O] [babel] session initialization (was RE: python/babel inline images), Mikhail Titov, 2012/06/07
- Re: [O] [babel] session initialization (was RE: python/babel inline images), Eric Schulte, 2012/06/07