title: Selenium problem in VS Code Interactive Mode
body: <p>I am trying to run Selenium from the interactive mode of Visual Studio code, but I am getting the error below. Everything works great in Jupyter or when I run the script non-interactively.</p>
  <p>MRE</p>
  <pre><code># %%
  from selenium import webdriver    
  url = 'google.com'
  driver = webdriver.Firefox()
  driver.get(url)
  </code></pre>
  <p>Error message</p>
  <pre><code>---------------------------------------------------------------------------
  WebDriverException                        Traceback (most recent call last)
  ++redacted++.py in 
        3 url = 'google.com'
  ----&gt; 4 driver = webdriver.Firefox()
        5 driver.get(url)
  
  ~/anaconda3/lib/python3.8/site-packages/selenium/webdriver/firefox/webdriver.py in __init__(self, firefox_profile, firefox_binary, timeout, capabilities, proxy, executable_path, options, service_log_path, firefox_options, service_args, desired_capabilities, log_path, keep_alive)
      168             executor = FirefoxRemoteConnection(
      169                 remote_server_addr=self.service.service_url)
  --&gt; 170             RemoteWebDriver.__init__(
      171                 self,
      172                 command_executor=executor,
  
  ~/anaconda3/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py in __init__(self, command_executor, desired_capabilities, browser_profile, proxy, keep_alive, file_detector, options)
      155             warnings.warn(&quot;Please use FirefoxOptions to set browser profile&quot;,
      156                           DeprecationWarning, stacklevel=2)
  --&gt; 157         self.start_session(capabilities, browser_profile)
      158         self._switch_to = SwitchTo(self)
      159         self._mobile = Mobile(self)
  
  ~/anaconda3/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py in start_session(self, capabilities, browser_profile)
      250         parameters = {&quot;capabilities&quot;: w3c_caps,
      251                       &quot;desiredCapabilities&quot;: capabilities}
  --&gt; 252         response = self.execute(Command.NEW_SESSION, parameters)
      253         if 'sessionId' not in response:
      254             response = response['value']
  
  ~/anaconda3/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py in execute(self, driver_command, params)
      319         response = self.command_executor.execute(driver_command, params)
      320         if response:
  --&gt; 321             self.error_handler.check_response(response)
      322             response['value'] = self._unwrap_value(
      323                 response.get('value', None))
  
  ~/anaconda3/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py in check_response(self, response)
      240                 alert_text = value['alert'].get('text')
      241             raise exception_class(message, screen, stacktrace, alert_text)
  --&gt; 242         raise exception_class(message, screen, stacktrace)
      243 
      244     def _value_or_default(self, obj, key, default):
  
  WebDriverException: Message: Process unexpectedly closed with status 11
  </code></pre>
  <hr />
  <p>Edit 1:</p>
  <p>Adding a screenshot of available environments</p>
  <p>The first complain about ipykernel not being installed, even though it should be according to pip. The last two give the error</p>
  <p><a href="https://i.stack.imgur.com/E00gL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E00gL.png" alt="enter image description here" /></a></p>