Using VS Code for Python programming on Windows OS.
Installed VS Code, Installed Python extensions by Microsoft.
Installed Jupyter extension.
Created a blank notebook and wrote python script.
The first line where I wrote “from helper_functions import get_llm_response” gives an error.
ModuleNotFoundError: No module named ‘helper_functions’
What’s wrong? Anyone using the same set up to code? Can you please provide step by step instructions or we can also connect via google meet if required. I’m in EST time zone.
The error ModuleNotFoundError: No module named 'helper_functions' means that Python can’t find a file or package called helper_functions.py in your current environment or working directory. A few things to check step by step:
Check if the file exists
Make sure you actually have a file named helper_functions.py in the same folder as your Jupyter notebook.
If it’s in another folder, you’ll need to either move it next to your notebook or adjust the Python path (sys.path) or use a relative import.
Kernel and environment
Sometimes VS Code runs a Jupyter kernel from a different Python environment than the one you expect.
In the top right of your notebook, check the kernel selected. It should match the environment where your code and libraries live.
Restart and re-run
After adding the file, restart the Jupyter kernel (in VS Code: Kernel > Restart Kernel) and then re-run all cells.
Glad to hear it worked out and that the solution helped! Thanks for marking it as the answer.
I’m always happy to support and also open to exploring new roles and surprising opportunities in the AI/ML space. If you ever come across something interesting or want to collaborate, feel free to reach out.