title: Undefined name 'ndimage' even though i have imported it with import scipy.ndimage and loop
body: <p>It says undefined name 'ndimage' when i try do the following:</p>
  
  <pre><code>import scipy.ndimage
  blurred  = ndimage.gaussian_filter(file1, sigma=3)
  </code></pre>
  
  <p>please could someone suggest what is wrong?</p>
  
  <p>also can I put:</p>
  
  <pre><code>sigma=1
  blurred  = ndimage.gaussian_filter(file1, sigma)
  </code></pre>
  
  <p>i need to somehow create a loop which will show a number of blurred images with varying blurredness.</p>
  
  <p>Thanks in advance for <strong>any</strong> help.</p>