I am not able to call functions from another Python file named fetch_data. I am using VS Code.
Edit:
Now I am able to import the function from the solution given by Molly. But I am still receiving error in VS Code.
I am not able to call functions from another Python file named fetch_data. I am using VS Code.
Edit:
Now I am able to import the function from the solution given by Molly. But I am still receiving error in VS Code.
In VSCode:
import sys
sys.path[0]
fetch_data.py
in the shown folderIn StackOverflow:
Open Workspace Settings.json, add
"python.analysis.extraPaths": [
\path\to\folder\which\includes\fetch_data,
],
Then reload window, the error should go away.