I've recently moved the location of my git repo. All my standard Python scripts work just fine but for some reason my Jupyter notebooks can't even import any modules. I've re-cloned my repo to the original location and the notebooks run fine again.
I've tried searching the VS Code settings for something that resembles a working directory for Jupyter but no luck. Any ideas on what might be going on and how I could fix it?
For reference:
- OS: Windows 10
- VS Code: 1.53.2
- Python extension: 2021.1.502429796
- Jupyter extension: 2020.12.414227025
Edit:
I've been able to put a sticking plaster on this by using os.chdir()
to select the new repo.