Open zhongnanxu opened 8 years ago
Do you mean in a jmax it appears that sessions are default for Python? I hadn't noticed that. I will check in it tomorrow.
I pushed a fix to scimax that makes the default code block to run isolated. You can also force a block to not be in a session with ":session none" in the block header.
Compared to the jmax, I've noticed python automatically executes in a session mode. I understand this allows for multiple python code in a document to interact with each other as well as error being printed out.
Is there a way to easily switch back to the old behavior where each python code-block executed in isolation? I find this useful for debugging packages you import (since running the code again doesn't import a new version if it has been changed), as well for prettier printing.