Re: Hiding results using :post

2021-06-08 Thread Roger Mason
Hello, John Kitchin writes: > This is doable with a hook and advice I think. The hook will hide the > results if you use :results hide in the header. > > I had to use the advice to remove the results before hand, so that you > toggle the visibility off. This is pretty lightly tested. you could >

Re: Hiding results using :post

2021-06-07 Thread George Mauer
Cool, thanks! On Mon, Jun 7, 2021 at 4:31 PM John Kitchin wrote: > it is the name of blocks that use emacs-jupyter ( > https://github.com/nnicandro/emacs-jupyter) (instead of ob-ipython). > Basically it is a connection between org-src blocks and a jupyter kernel > (it does not have to be python

Re: Hiding results using :post

2021-06-07 Thread John Kitchin
it is the name of blocks that use emacs-jupyter ( https://github.com/nnicandro/emacs-jupyter) (instead of ob-ipython). Basically it is a connection between org-src blocks and a jupyter kernel (it does not have to be python, it can be julia, R, etc.) I am trying it out this summer. I think that co

Re: Hiding results using :post

2021-06-07 Thread George Mauer
Woah woah. What is the jupyter-python language, John? On Mon, Jun 7, 2021, 15:44 John Kitchin wrote: > This is doable with a hook and advice I think. The hook will hide the > results if you use :results hide in the header. > > I had to use the advice to remove the results before hand, so that yo

Re: Hiding results using :post

2021-06-07 Thread John Kitchin
This is doable with a hook and advice I think. The hook will hide the results if you use :results hide in the header. I had to use the advice to remove the results before hand, so that you toggle the visibility off. This is pretty lightly tested. you could eliminate (defun hide-results (&optional

Re: Hiding results using :post

2021-06-07 Thread Nick Savage
My initial thoughts are that this is very possible. This might be an area where we could add a new defcustom on always hiding the results to allow the user to choose it. Without looking at the code, I think it would be pretty straight forward to make an excursion to the results line, toggle sho

Hiding results using :post

2021-06-07 Thread Roger Mason
Hello, I'd like to be able to hide results, for example when I expect the them to span many lines. I know I can hit =tab= on the #+RESULTS: line, but I'd like to be able to set this automatically. My most recent effort: #+name: hideresults #+begin_src emacs-lisp :results none :exports none (add