On 2013-05-29 22:00, Eric Schulte wrote:
This does seem to be in the right direction. This is similar to my
diagnosis of the non-session case [1]. If the python process prints
weird hex character values (e.g., '\xc3\xa0') instead of utf8 characters
(e.g., "à"), then Babel will insert the hex va
>
> To remind and illustrate the problem, here is an example :
> #+name: pytab-test
> #+begin_src python :results value :session :preamble # -*- coding: utf-8 -*-
> :return a
> a = ( ( "é", "a" ), ( "a", "à" ) )
> a
> #+end_src
>
> #+TBLNAME: pytab-test
> | \303\251 | a|
> | a| \30
Andreas Röhler easy-emacs.de> writes:
>
> Am 07.05.2013 18:41, schrieb Eric Schulte:
> >> #+NAME: test2
> >> #+begin_src python :results value :preamble # -*- coding: utf-8 -*-
:return
> >> a
> >> a = ( ( "é", "a" ), ( "a", "à" ) )
> >> b = "é"
> >> #+end_src
> >>
> >> #+RESULTS: test2
> >> | \
Am 07.05.2013 18:41, schrieb Eric Schulte:
#+NAME: test2
#+begin_src python :results value :preamble # -*- coding: utf-8 -*- :return
a
a = ( ( "é", "a" ), ( "a", "à" ) )
b = "é"
#+end_src
#+RESULTS: test2
| \303\251 | a|
| a| \303\240 |
Maybe this isn't an execution problem, b
Am 07.05.2013 22:05, schrieb Nick Dokos:
Andreas Röhler writes:
So it's up to choose the Python default interpreter.
Unfortunatly
(org-babel-do-load-languages
'org-babel-load-languages
'((python3 . t)))
seems not working.
The language is still python (more or less). What you need to
Andreas Röhler writes:
> So it's up to choose the Python default interpreter.
>
> Unfortunatly
>
> (org-babel-do-load-languages
> 'org-babel-load-languages
> '((python3 . t)))
>
> seems not working.
>
The language is still python (more or less). What you need to do is
customize org-babel-pyth
[ ... ]
But, what is hurting my poor little neurone is the fact that I don't
understand why I get the correct result when the evaluation returns a single
value and a wrong answer with a table.
that's not the case.
One from returns a, the other b, which are bound differently.
The tuple fails wi
Nick Dokos gmail.com> writes:
>
> Andreas Röhler easy-emacs.de> writes:
>
> > Am 07.05.2013 20:18, schrieb Eric Schulte:
> >> Andreas Röhler easy-emacs.de> writes:
> >> ...
> >> Maybe Python simply needs to be convinced to print in utf-8 format?
> >
> > Get the wrong results with a Ipython0.1
Am 07.05.2013 21:20, schrieb Nick Dokos:
Andreas Röhler writes:
Am 07.05.2013 20:18, schrieb Eric Schulte:
Andreas Röhler writes:
...
Maybe Python simply needs to be convinced to print in utf-8 format?
Get the wrong results with a Ipython0.12, but correct with Python3.2.3 and
Python3.3 -
Andreas Röhler writes:
> Am 07.05.2013 20:18, schrieb Eric Schulte:
>> Andreas Röhler writes:
>> ...
>> Maybe Python simply needs to be convinced to print in utf-8 format?
>
> Get the wrong results with a Ipython0.12, but correct with Python3.2.3 and
> Python3.3 - all called from Emacs24.3
uni
Am 07.05.2013 20:18, schrieb Eric Schulte:
Andreas Röhler writes:
Am 07.05.2013 18:41, schrieb Eric Schulte:
#+NAME: test2
#+begin_src python :results value :preamble # -*- coding: utf-8 -*- :return
a
a = ( ( "é", "a" ), ( "a", "à" ) )
b = "é"
#+end_src
#+RESULTS: test2
| \303\251 | a
Andreas Röhler writes:
> Am 07.05.2013 18:41, schrieb Eric Schulte:
>>> #+NAME: test2
>>> #+begin_src python :results value :preamble # -*- coding: utf-8 -*- :return
>>> a
>>> a = ( ( "é", "a" ), ( "a", "à" ) )
>>> b = "é"
>>> #+end_src
>>>
>>> #+RESULTS: test2
>>> | \303\251 | a|
>>> | a
Am 07.05.2013 18:41, schrieb Eric Schulte:
#+NAME: test2
#+begin_src python :results value :preamble # -*- coding: utf-8 -*- :return
a
a = ( ( "é", "a" ), ( "a", "à" ) )
b = "é"
#+end_src
#+RESULTS: test2
| \303\251 | a|
| a| \303\240 |
Maybe this isn't an execution problem, b
> #+NAME: test2
> #+begin_src python :results value :preamble # -*- coding: utf-8 -*- :return
> a
> a = ( ( "é", "a" ), ( "a", "à" ) )
> b = "é"
> #+end_src
>
> #+RESULTS: test2
> | \303\251 | a|
> | a| \303\240 |
>
Maybe this isn't an execution problem, but is rather a buffer enco
Hello,
My problem is about python code evaluation with org-babel that should give
a table containing accented characters.
Here is an example :
#+NAME: test1
#+begin_src python :results value :preamble # -*- coding: utf-8 -*- :return
b
a = ( ( "é", "a" ), ( "a", "à" ) )
b = "é"
#+end_src
#+RESULT
15 matches
Mail list logo