According to the org-mode manual (emphasis added by me):
The tags that exclude a tree from export (org-export-exclude-tags). The default value is :noexport:. Entries with the :noexport: tag will be unconditionally excluded from the export, even if they have an :export: tag. Code blocks contained in excluded subtrees will still be executed during export even though the subtree is not exported.
However, I have an org mode document featuring python code blocks for which code blocks in :noexport: headings does not execute on export:
* Setup Code :noexport:
Here's some general text!
#+BEGIN_SRC ipython :session :exports none :tangle ./politics.py
%matplotlib inline
import matplotlib.pyplot as plt
# . . .
# . . .
#+END_SRC
* Introduction
. . .
When I export, it throws python throws NameError: name 'plt' not defined
. Clearly org isn't executing blocks in these :noexport: headings on export. It does work when I remove the :noexport: tag. Am I missing something, or is this an error in the documentation?
I'm using org 8.2.10