emacs-jupyter/jupyter

Output format irregular with :async yes

Open

#275 opened on Jul 26, 2020

 (6 comments) (0 reactions) (0 assignees)Emacs Lisp (106 forks)auto 404
bughelp wanted

Repository metrics

Stars
 (1,028 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

I just tested the :async yes header, and noticed that the output format becomes irregular. For example, here's a code block to show what I mean (the formatting is nice and regular if I remove the `:async yes'):

#+begin_src jupyter-stata :session stata :async yes
webuse auto
summ
#+end_src

and here's the corresponding output:

#+RESULTS:
#+begin_example

  (1978 Automobile Data)


      Variable |        Obs        Mean    Std. Dev.       Min        Max
  -------------+---------------------------------------------------------
          make |          0
         price |         74    6165.257    2949.496       3291      15906
           mpg |         74     21.2973    5.785503         12         41
         rep78 |         69    3.405797    .9899323          1          5
  headroom |         74    2.993243    .8459948        1.5          5
  -------------+---------------------------------------------------------
  trunk |         74    13.75676    4.277404          5         23
  weight |         74    3019.459    777.1936       1760       4840
  length |         74    187.9324    22.26634        142        233
  turn |         74    39.64865    4.399354         31         51
  displacement |         74    197.2973    91.83722         79        425
  -------------+---------------------------------------------------------
  gear_ratio |         74    3.014865    .4562871       2.19       3.89
  foreign |         74    .2972973    .4601885          0          1
#+end_example

Here is the much prettier output from the same command block without the :async yes header option:

#+RESULTS:
#+begin_example

  (1978 Automobile Data)


      Variable |        Obs        Mean    Std. Dev.       Min        Max
  -------------+---------------------------------------------------------
          make |          0
         price |         74    6165.257    2949.496       3291      15906
           mpg |         74     21.2973    5.785503         12         41
         rep78 |         69    3.405797    .9899323          1          5
      headroom |         74    2.993243    .8459948        1.5          5
  -------------+---------------------------------------------------------
         trunk |         74    13.75676    4.277404          5         23
        weight |         74    3019.459    777.1936       1760       4840
        length |         74    187.9324    22.26634        142        233
          turn |         74    39.64865    4.399354         31         51
  displacement |         74    197.2973    91.83722         79        425
  -------------+---------------------------------------------------------
    gear_ratio |         74    3.014865    .4562871       2.19       3.89
       foreign |         74    .2972973    .4601885          0          1
#+end_example

Contributor guide