I am trying to use ein
with org-mode
in emacs but I am having problems with exporting the results. Here is a very simple example:
#+BEGIN_SRC ein-python :session localhost :results raw drawer :exports both
import pandas as pd
x = pd.DataFrame({'Num': a, 'Text': ['a', 'b', 'c', 'd']})
x
#+END_SRC
:results:
Num Text
0 1 a
1 3 b
2 5 c
3 12 d
:end:
So, using :results raw drawer
writes the results inside :results:
block, and are not shown when I export to html. If instead I use :results output
or :results value
it simply prints [...]
(no data). And :results raw
prints the following
#+RESULTS: b2757239-e41b-4626-9aef-d2abf968c1ee
Num Text
0 1 a
1 3 b
2 5 c
3 12 d
Num Text
0 1 a
1 3 b
2 5 c
3 12 d
[....]
[....]
Which of course does not look good in the html file. The question, what is the best way to print results to export in html?