jkitchin / jmax

Johns customizations to maximize emacs
185 stars 59 forks source link

Way to revertback from session behavior when executing python code? #74

Open zhongnanxu opened 8 years ago

zhongnanxu commented 8 years ago

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.

jkitchin commented 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.

jkitchin commented 8 years ago

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.