Jack Kamm <jackk...@gmail.com> writes: >> May we detect if there is a return statement? > > That's a nice idea, I like it. > > Probably there should be a customization > `org-babel-python-nonsession-return-style', which could take on the > values 'require-return (old behavior), 'last-statement (session style), > or 'auto (detect if there is return statement).
+1 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>