title: How to resolve 'Process unexpectedly closed with status 11' for Selenium in IPython?
body: <p>I run the following code in <code>IPython</code> (from official Python extension VSCode):</p>
  <pre><code># %%
  from selenium import webdriver
  
  driver = webdriver.Firefox(
      executable_path='.driver/geckodriver')
  </code></pre>
  <p>It gives me the following errors:</p>
  <ul>
  <li>For GeckoDriver 0.28.0</li>
  </ul>
  <pre><code>WebDriverException: Message: Process unexpectedly closed with status 11
  </code></pre>
  <ul>
  <li>For GeckkoDriver 0.27.0:</li>
  </ul>
  <pre><code>WebDriverException: Message: invalid argument: can't kill an exited process
  </code></pre>
  <p>My setup:</p>
  <pre><code>Firefox: 82.0
  GeckoDriver: 0.28.0
  Selenium: 3.141.0
  IPython: 7.19.0
  Ubuntu: 20.10
  Python3 venv
  </code></pre>
  <p><strong>Note:</strong> This script works in terminal but not <code>IPython</code></p>
  <p>Thank you.</p>