considering 2 python files under the same directory:
file1.py:
def fn():
print("called")
file2.py:
# %%
import file1
file1.fn()
file2.py can be successfully executed by python interpreter, but if you execute the cell using VSNotebook you'll get an error:
ModuleNotFoundError: No module named 'file1'
This bug may be caused by the fact that the temporary jupyter notebook file is created under a temporary directory (unlike the one used by real jupyter which is permanent), and cannot find other python files in workspace.
considering 2 python files under the same directory:
file1.py:
file2.py:
file2.py can be successfully executed by python interpreter, but if you execute the cell using VSNotebook you'll get an error:
This bug may be caused by the fact that the temporary jupyter notebook file is created under a temporary directory (unlike the one used by real jupyter which is permanent), and cannot find other python files in workspace.