Bruno, Ihor — I'm the one who raised the caption/name clobbering issue on the emacs-jupyter side a couple weeks ago. Nathaniel traced it to exactly the kind of intermediate-state problem that the pending-contents API is designed to solve — async execution creates an empty #+NAME: / #+CAPTION: / #+RESULTS: sequence that org-babel-where-is-src-block-result doesn't recognize.
We have a targeted fix in emacs-jupyter (PR #611), but it's clearly a workaround for the lack of a proper async result API in ob-core. I'd like to help move the pending-contents work forward. Specifically, I can: 1. Test the bba-pending-contents branch against current org-mode HEAD and emacs-jupyter, and report what works and what needs updating. 2. Help write the emacs-jupyter integration once the API is in place — that's the adapter layer between jupyter's kernel message handling and org's result insertion. 3. Contribute patches if there are specific pieces that need finishing. Bruno — would you welcome help on the remaining work? Happy to coordinate however makes sense. Pete
