Visual Studio Code - Python(Notebook) Related Questions
0. Foreword
Original Article:
- https://stackoverflow.com/questions/72019083/how-do-i-solve-the-pylancereportmissingimports
- https://stackoverflow.com/questions/44515769/conda-is-not-recognized-as-internal-or-external-command
1. Select Python Interpreter
- Open up your Command Pattle(press
Ctrl + Shift + P
orF1
) and type: “python: select interpreter’. - Browse/Select your newly created python interpreter’s path inside your venv.
1. Execute Above Cells
- Open up your Command Pattle(press
Ctrl + Shift + P
orF1
). - Type: “Notebook: Execute Above Cells” and press Enter.
2. ‘Conda’ is not recognized
‘Conda’ is not recognized as internal or external command
- Open Anaconda Prompt:
press win + S
.
input anaconda prompt
.
open it.
- Check Conda Installed Location
1 |
|
- Open Advanced System Settings
press win + S
.
input advanced system settings
.
open it.
Click on Environment Variables
Edit
Path
Add New Path
1 |
|
3. Python Formatting
There is no document formatter for ‘python’-files installed.
Install autopep8
plugin.
Visual Studio Code - Python(Notebook) Related Questions
https://www.hardyhu.cn/2023/11/19/Visual-Studio-Code-Python-Related-Questions/