0

I have installed latest orgmode (release_9.5.3-480-g0b07b3), after run C-c C-c to execute a babel code, the results block has been folded by default. How can I config it to expand the results block by default after execution?

I use below drawer to show image since I want to show text output and image output at the same time.

#+begin_src python :results output drawer
import sys
import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(0, 2 * np.pi, 100) y = np.sin(x) plt.plot(x, y)

pngname = "./hello.png" plt.savefig(pngname) print("[[%s]]"%pngname) #+end_src

This example works fine before, but latest org version will fold the results after execution! Looks like the drawer behavior changed.

lucky1928
  • 1,666
  • 10
  • 28
  • 1
    Does it happen if you start emacs with emacs -q? If not, the problem is with your init file: bisect it to find out what causes it. If yes, does it happen with emacs -Q? If not, then the site initialization file is the problem: complain to your distro. One or the other of these should be the case, because by default, resutlts blocks are not folded. – NickD May 13 '22 at 07:39
  • 1
    @NickD Thanks, looks like the drawer behavior changed. I add a example in question and the output will be fold after execution. – lucky1928 May 14 '22 at 20:54
  • Yes, I can reproduce that behavior. There has also been some discussion about it on the mailing list although I'm not sure what the outcome is (if any): I haven't read it carefully enough. – NickD May 16 '22 at 20:26
  • @NickD Good findings, yes, I read it and one workaournd is add #+STARTUP: showeverything in org doc! – lucky1928 May 16 '22 at 20:47
  • I thought they said that did not work - but as I said, I just skimmed. – NickD May 16 '22 at 21:23

0 Answers0