Modify this setting:
File > Preferences > Settings > Python > Data Science > Execute in File Dir
More Related Contents:
- What exactly is current working directory?
- How to execute Python code from within Visual Studio Code
- Why does it say that module pygame has no init member?
- How to set the current working directory? [duplicate]
- VSCode — how to set working directory for debugging a Python program
- How can I set up a virtual environment for Python in Visual Studio Code?
- How can I change the Python version in Visual Studio Code?
- python: Change the scripts working directory to the script’s own directory
- Activating Anaconda Environment in VsCode
- Import could not be resolved/could not be resolved from source Pylance in VS Code using Python 3.9.2 on Windows 10
- Visual Studio Code – How to add multiple paths to python path?
- PATH not updated correctly from conda activate in VSCode’s terminal
- Ampersand “&” syntax error running any Python script in VSCode?
- Visual Studio Code is not showing the ouput of Python
- Imports failing in VScode for pylint when importing pygame
- VSCode pytest test discovery fails
- Importing the numpy c-extensions failed
- Module not found error in VS code despite the fact that I installed it
- VS Code starts debugging in integrated terminal instead of debug console
- Python – How to show graph in Visual Studio Code itself?
- How do I disable pylint unused import error messages in vs code
- Pretty print a pandas dataframe in VS Code
- Visual Studio Code: Intellisense not working
- Use virtualenv with Python with Visual Studio Code
- Import “flask” could not be resolved from source Pylance (reportMissingModuleSource)
- Reading input during debugging in Python with VSCode
- Kernel died with exit code 1(VS code)
- How do I run my Python script? Why does the command line tell me “no such file or directory”?
- How to hide file paths when running Python scripts in VS Code?
- No name ‘QApplication’ in module ‘PyQt5.QtWidgets’ error in Pylint