Oct-20-2021, 05:11 PM
(Oct-19-2021, 07:24 PM)deanhystad Wrote: I usually use the run arrow near the upper right corner ("Run Python File in Terminal") or the "Start Debugging" or "Run Without Debugging" options under the "Run" menu. All of these run your program without problems.
Thanks! These run options work for me too.
I get the name error when I press Shift-Enter to run the code but I think pressing those keys activates the REPL.
Or maybe the REPL is already activated and is just waiting for commands.
I just started using Python and VS Code for less than a week so I'm learning how to navigate both the language and the IDE.
I haven’t installed ipykernel yet.
(Oct-19-2021, 07:24 PM)deanhystad Wrote: I think installing the Jupyter extension is why I get the "Run XXX in Interactive Window" choices in the code context menu.
VS Code says I have Code Runner, Jupyter, Jupyter, Jupyter Notebook Renderers, Pylance, and Python but I don't see the "Run XXX in Interactive Window option.
What do you mean by "code context menu"?