Re: [O] Babel python question: use of ipython and %cpaste

2013-12-03 Thread Rasmus
Arun Persaud apers...@lbl.gov writes: Hi being able to use python as a source block is great, but I often stumble over the fact that when using sessions you have to treat empty lines in a special way (i.e. as the end of an indentation block). I was wondering if it would be easy to create

Re: [O] Babel python question: use of ipython and %cpaste

2013-12-03 Thread Andreas Röhler
Am 03.12.2013 07:08, schrieb Arun Persaud: Hi being able to use python as a source block is great, but I often stumble over the fact that when using sessions you have to treat empty lines in a special way (i.e. as the end of an indentation block). I was wondering if it would be easy to create

Re: [O] Babel python question: use of ipython and %cpaste

2013-12-03 Thread Arun Persaud
Hi On 12/03/2013 03:44 AM, Rasmus wrote: [ipython in org mode] For Org you could do: (setq org-babel-python-command ipython --no-banner --classic --no-confirm-exit) You should now be able to do #+BEGIN_SRC python :results output %timeit 1+1 #+END_SRC [...] nice ;) that works

[O] Babel python question: use of ipython and %cpaste

2013-12-02 Thread Arun Persaud
Hi being able to use python as a source block is great, but I often stumble over the fact that when using sessions you have to treat empty lines in a special way (i.e. as the end of an indentation block). I was wondering if it would be easy to create an ipython mode, something like #+BEGIN_SRC

[O] babel - python question

2013-07-05 Thread Rustom Mody
[Complete babel noob here] Following the babel doc http://orgmode.org/worg/org-contrib/babel/intro.html#library-of-babel I wrote this * Head #+name: ppp :results value #+begin_src python import time print(Hello, today's date is %s % time.ctime()) print('Two plus two is') return 2 + 2 #+end_src

Re: [O] babel - python question

2013-07-05 Thread Eric Schulte
Rustom Mody rustompm...@gmail.com writes: [Complete babel noob here] Following the babel doc http://orgmode.org/worg/org-contrib/babel/intro.html#library-of-babel I wrote this * Head #+name: ppp :results value #+begin_src python import time print(Hello, today's date is %s %