title: Where to put #define in IPython Cython cell?
body: <p>If I make a notebook with cells</p>
  <pre><code>%load_ext cython
  </code></pre>
  <p>and</p>
  <pre><code>%%cython -a
  
  cimport numpy as cnp
  </code></pre>
  <p>then the second one outputs</p>
  <pre><code>In file included from /home/ignoring_gravity/.venv/lib/python3.9/site-packages/numpy/core/include/numpy/ndarraytypes.h:1960,
                   from /home/ignoring_gravity/.venv/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                   from /home/ignoring_gravity/.venv/lib/python3.9/site-packages/numpy/core/include/numpy/arrayobject.h:5,
                   from /home/ignoring_gravity/.cache/ipython/cython/_cython_magic_7ec32efe76f8c3e83109f4fadb9a4e1f.c:765:
  /home/ignoring_gravity/.venv/lib/python3.9/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning &quot;Using deprecated NumPy API, disable it with &quot; &quot;#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION&quot; [-Wcpp]
     17 | #warning &quot;Using deprecated NumPy API, disable it with &quot; \
        |  ^~~~~~~
  </code></pre>
  <p>My question is - where should I put<code>#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION</code>? If I change the second cell to</p>
  <pre><code>%%cython -a
  
  #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
  cimport numpy as cnp
  </code></pre>
  <p>then it still gives the same warning</p>