title: Displaying pyplot Windows using Anaconda+Sublime
body: <p>I installed the Anaconda distribution on Windows and got it working with Sublime Text 2. Now I can press ctrl+B to run scripts and after using pip to install the required packages, I finally have no ImportErrors. Unfortunately Matplotlib plots will not display no matter what I do.</p>
  
  <p>The most promising-looking answer was one on <a href="https://stackoverflow.com/questions/10831882/matplotlib-plots-not-displaying-in-sublimetext">this page</a>. I edited %appdata%\Roaming\Sublime Text 2\Packages\Python\Python.sublime-build to look like this:</p>
  
  <pre><code>{
      "cmd": ["C:\\Anaconda\\python.exe", "-u", "$file"],
      "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
      "selector": "source.python",
      "shell": true
  }
  </code></pre>
  
  <p>However it did nothing, and putting quotes around "true" made no difference.</p>
  
  <p>I was used to calling "ipython --pylab" in the console to enable Pyplot windows, so I tried editing the first line to the following:</p>
  
  <pre><code>"cmd": ["C:\\Anaconda\\Scripts\\ipython.exe", "--pylab", "$file"]
  </code></pre>
  
  <p>In %AppData%\Roaming\Sublime Text 2\Packages\User, I also tried commenting out the line:</p>
  
  <pre><code>// startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
  </code></pre>
  
  <p>Not sure what else to try now. Has anyone encountered and solved this before?</p>
  
  <p>Thanks!</p>