Summary:
I am trying to set up the Jupyter Notebook extension for VSCode but I can’t get my Python code snippets to run. There is no "Run" button to select. I can't select a Python/ Jupyter kernel to work with.
The problem in greater detail:
If you check out this YouTube clip at exactly 1 minute and 46 seconds (
CodePudding user response:
VS Code has prompted you to install the suggested extension.
Also it helps to make sure your vscode is
new terminal
Type the command python -m venv .venv
to create a virtual environment
After the creation is complete, use the command .venv/scripts/activate
to activate the virtual environment
Or Ctrl Shift P --> Python:Select Interpreter, select the interpreter of the virtual environment and then create a new terminal to activate the environment
Create new jupyter file using command palette command Create:New Jupyter Notebook
Or right click --> New File --> name ends with .ipynb
The virtual environment you just selected will be enabled as the kernel by default.
CodePudding user response:
I discovered a very simple answer: I installed the VSC package in the official Snap repo.
VSC and Python-Jupyter look to be all playing nice together now: