jkitchin / scimax

An emacs starterkit for scientists and engineers
Other
1.03k stars 123 forks source link

Executing python in org-mode code blocks always outputs None #3

Closed zhongnanxu closed 8 years ago

zhongnanxu commented 8 years ago

Not sure if this behavior is correct, but it is definitely different than old jmax. Any successfully run python code always outputs "None".

jkitchin commented 8 years ago

hm. How recent is your scimax? I added a default header of output pretty recently (maybe the last day) that should take care of that. I just pushed another commit to the template to make output be there too.

In the meantime, add :results output to the header

John


Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu

On Tue, Jul 12, 2016 at 3:58 PM, Zhongnan Xu notifications@github.com wrote:

Not sure if this behavior is correct, but it is definitely different than old jmax. Any successfully run python code always outputs "None".

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jkitchin/scimax/issues/3, or mute the thread https://github.com/notifications/unsubscribe/ABiRVmmYwdaEJX69RcWlyjEAUwhrUfQ6ks5qU_HqgaJpZM4JKw4- .

zhongnanxu commented 8 years ago

Thanks. I've been using jmax so long that I forgot this was needed to bet set...