Visual Studio Code - Python(Notebook) Related Questions

0. Foreword

Original Article:

1. Select Python Interpreter

  1. Open up your Command Pattle(press Ctrl + Shift + P or F1) and type: “python: select interpreter’.
  2. Browse/Select your newly created python interpreter’s path inside your venv.

1. Execute Above Cells

  1. Open up your Command Pattle(press Ctrl + Shift + P or F1).
  2. Type: “Notebook: Execute Above Cells” and press Enter.

2. ‘Conda’ is not recognized

‘Conda’ is not recognized as internal or external command

  1. Open Anaconda Prompt:

press win + S.
input anaconda prompt.
open it.

  1. Check Conda Installed Location
1
where python
  1. Open Advanced System Settings

press win + S.
input advanced system settings.
open it.

  1. Click on Environment Variables

  2. Edit Path

  3. Add New Path

1
2
3
C:\ProgramData\anaconda3\Library\bin
C:\ProgramData\anaconda3\Scripts
C:\ProgramData\anaconda3\condabin

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/
Author
John Doe
Posted on
November 19, 2023
Licensed under