title: Launch IPython notebook with selected browser
body: <p>I am trying to start IPython with a non default browser (in my case Firefox)
  and thought I could replicate the replicate the script given <a href="http://www.libertypages.com/clarktech/?p=3357" rel="noreferrer">in this blog</a></p>
  
  <p><strong>I am on Windows 7</strong> </p>
  
  <p>I put the following code in a file say "module.py"</p>
  
  <pre><code>import subprocess
  subprocess.call("ipython notebook --no-browser", shell=True)
  subprocess.call([r'C:\Program Files (x86)\Mozilla Firefox\Firefox.exe', '-new-tab', 'http://127.0.0.1:8888/'])
  </code></pre>
  
  <p>However when I run it from the command line </p>
  
  <pre><code> python C:\Users\mugabal\Desktop\module1.py
  </code></pre>
  
  <p>It execute the first line but not the second one (both lines work fine individually)</p>
  
  <p>My question (in a more general term) how can I launch a process and tell it not to highjack the console window? </p>
  
  <p>I apologize in advance if I have overseen an obvious explanation but I looked both in the subprocess documentation and on this platform </p>
  
  <p><strong>----- UPDATE -----</strong> </p>
  
  <p>I should have added that I tried to launch IPython with selected browser but could not figure out how to get it work </p>
  
  <pre><code>&gt;ipython notebook --browser='C:\Program Files (x86)\Mozilla Firefox\Firefox.exe'
  ... 
  [NotebookApp] The IPython Notebook is running at: http://127.0.0.1:8888/
  ...
  **[NotebookApp] No web browser found: could not locate runnable browser.**
  </code></pre>
  
  <p>To be precise, the following command in a Windows command prompt window works as expected:</p>
  
  <pre><code>start firefox 
  </code></pre>
  
  <p>but </p>
  
  <pre><code>ipython notebook --browser=firefox 
  </code></pre>
  
  <p>does not work (same error as above).</p>