Thanks Jack. Confirmed works. This might need to mentioned in Org manual and in 
ob-python.el source
code with comment. WDYT?

Jack Kamm <jackk...@gmail.com> writes:

> For non-session Python blocks, you need to use "return" on the value, as
> if you are in a function.
>
> The following works for me:
>
> #+begin_src python :results value pp
>   dic = {'key1': 1, 'b': 2}
>   return dic
> #+end_src
>
> #+RESULTS:
> : {'b': 2, 'key1': 1}


-- 
[ stardiviner ]
       I try to make every word tell the meaning that I want to express.

       Blog: https://stardiviner.github.io/
       IRC(freenode): stardiviner, Matrix: stardiviner
       GPG: F09F650D7D674819892591401B5DF1C95AE89AC3

Attachment: signature.asc
Description: PGP signature

Reply via email to