title: Run parts of Python code in visual studio code like with R
body: <p>So I am trying to wean myself of R a bit more where using this keyboard combination:</p>
  <pre><code>CTRL + Enter
  </code></pre>
  <p>allows me to run parts of the code repeatedly (i.e. data frames etc. stay in memory) bit like in a notebook. For Python I can use:</p>
  <pre><code>CTRL + F5
  </code></pre>
  <p>to run all code or:</p>
  <pre><code>SHIFT + Enter 
  </code></pre>
  <p>to run code selection but I cannot run code repeatedly like in R (i.e. objects stay in memory)? Am I right? I wish that I am not haha. Any pointer very much appreciated! Thanks!</p>
  <p>PS:</p>
  <p>Related (?) discussion:</p>
  <p><a href="https://stackoverflow.com/questions/5475649/python-idle-equivalent-of-ctrl-r-in-r">Python IDLE equivalent of CTRL-R in R</a></p>