yongrenjie / sphinx-exec-directive

Sphinx extension to run Python code blocks and display the output.
https://yongrenjie.github.io/sphinx-exec-directive/
MIT License
3 stars 3 forks source link

(?) Evaluate last line and print the result #3

Closed yongrenjie closed 2 years ago

yongrenjie commented 3 years ago

This would mimic behaviour in Jupyter notebooks for example. It would be subject to a couple of conditions:

Multiline expressions seem like the tricky bit.

yongrenjie commented 2 years ago

probably won't bother with this