emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] :session question


From: Andreas Leha
Subject: Re: [O] :session question
Date: Wed, 27 Mar 2013 10:27:30 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Andreas Röhler <address@hidden> writes:

> Am 26.03.2013 16:31, schrieb Eric Schulte:
>> Achim Gratz <address@hidden> writes:
>>
>>> Am 26.03.2013 13:37, schrieb Eric Schulte:
>>>> This can be done system wide by setting the language-specific header
>>>> arguments.
>>>
>>> I've yet to see an example on how to do this.
>>>
>>
>>      #+begin_src emacs-lisp
>>        (setq org-babel-default-header-args:R
>>              '((:session . "org-R")))
>>      #+end_src
>>
>>      #+RESULTS:
>>      | (:session . org-R) |
>>
>>      #+begin_src R
>>      x <- 1
>>      x
>>      #+end_src
>>
>>      #+RESULTS:
>>      : 1
>>
>>      #+begin_src R
>>      x
>>      #+end_src
>>
>>      #+RESULTS:
>>      : 1
>>
>>>
>
> Hi,
>
> this looks very confusing for me.
>
> So, what is the purpose of a named session?
> Understood it being a name-space, whose values don't affect the other ones.
> What's in python-mode a dedicated shell.

I can't speak for python, but in R, every differently named session will
run within its own R process.

The cool thing is, that I can work on file_foo.org and file_bar.org
simultaneously, when file_foo.org uses R-session *foo* and file_bar.org
uses R-session *bar*.

[...]

Regards,
Andreas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]