How to run only part of the code in PyCharm, having some data in operating memory
Pycharm allows you to highlight a section of run and execute that specific section in the console by right-clicking and choosing 'Execute selection in Python Console'. This section of code has now been executed and any variables you've defined are now stored in memory.
You can continue executing pieces of code in this way and reference objects previously created up until you refresh the console session.