Running python code using 'Run selection in Python terminal'
Want to see what some Python code will do when run? Use the Run selection in Python terminal
command from the Python extension.
Also try running code in the interactive window for more notebook like experience .