News for hackers. Stuff that matters.
Re:Emacs org-mode examples and cookbook (2017) by Thibi2000 on Wednesday March 10, 2021 @04:40AM (#26409527)
You might have to check the value of =org-babel-python-wrapper-method=, which defines the format of the created temporary file to which the source block is exported so it can be executed properly.

After installing matplotlib using pip3 and changing =org-babel-python-command= to python3 I was able to execute this example without a problem.

The value of =org-babel-python-wrapper-method= for me is:

  def main():
  %s

  open('%s', 'w').write( str(main()) )"

There are no comments on this comment yet.