title: Get Traceback of warnings
body: <p>In numpy we can do <a href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.seterr.html" rel="noreferrer"><code>np.seterr(invalid='raise')</code></a> to get a traceback for warnings raising an error instead (see <a href="https://stackoverflow.com/questions/4190817/tracing-python-warnings-errors-to-a-line-number-in-numpy-and-scipy">this post</a>).</p>
  
  <ul>
  <li>Is there a general way for tracing warnings?</li>
  <li>Can I make python to give a traceback, when a warning is raised?</li>
  </ul>