title: Debugging with Python Poetry and VS Code's SSH plugin
body: <p>The typical way to run VS Code with a Poetry environment is</p>
  <pre><code>$ poetry shell
  (poetry environment) $ code .
  </code></pre>
  <p>However, this isn't possible when using VS Code's SSH plugin, which creates new remote shells as needed.</p>
  <p>Only commands deemed necessary by VS Code and its plugins are run. Ideally the Python plugin would run <code>poetry shell</code>, but it doesn't at this time. Starting the Python debugger without the correct environment is not useful. I used VS Code's terminal window to type the command myself, but it had no effect. Is there a workaround?</p>