title: Configure Visual Studio Code to run Python in bash on Windows
body: <p>I want to run python <code>.py</code> file in Visual Studio Code using Windows bash console.</p>
  <p>What I tried to do:</p>
  <p>Change default shell in <code>settings.json</code>:</p>
  <pre><code>{
      &quot;terminal.integrated.shell.windows&quot;: &quot;C:\\Windows\\sysnative\\bash.exe&quot;
  }
  </code></pre>
  <p>Add task in <code>tasks.json</code> to run <code>python</code> command with file name as an argument:</p>
  <pre><code>{
      // See https://go.microsoft.com/fwlink/?LinkId=733558
      // for the documentation about the tasks.json format
      &quot;version&quot;: &quot;0.1.0&quot;,
      &quot;command&quot;: &quot;python&quot;,
      &quot;isShellCommand&quot;: true,
      &quot;showOutput&quot;: &quot;always&quot;,
      &quot;tasks&quot;: [
          {
              &quot;taskName&quot;: &quot;Run python in bash&quot;,
              &quot;suppressTaskName&quot;: true,
              &quot;args&quot;: [&quot;${file}&quot;]
          }
      ]
  }
  </code></pre>
  <p>There are a few problems to solve here:</p>
  <ol>
  <li>Tasks are not being run in bash as I wanted</li>
  <li>To access <code>C</code> drive <a href="http://www.howtogeek.com/261383/how-to-access-your-ubuntu-bash-files-in-windows-and-your-windows-system-drive-in-bash/" rel="noreferrer">I need to replace</a> <code>C:\</code> with <code>/mnt/c</code> in file path</li>
  </ol>
  <p>Can you share with my solutions to those problems?</p>