Cannot run jupyter notebooks, installed modules are not found

The attached screenshot illustrates my problem, which is that I cannot run most of my jupyter notebooks that were working just a few days ago. Apparently, the directory where the modules are installed is no more in the search path.

For now, my fix is to add the missing path manually:

import sys
sys.path.append('/home/ubuntu/.lambda/lib/python3.10/site-packages')

But I would like to find a better solution, which does not require modifying every notebook file I use.

Hi,

Lambda’s engineers are working on a permanent fix.

For a temporary workaround, please run the following command:

echo "c.InteractiveShellApp.exec_lines = ['import sys; sys.path.append(\"/home/ubuntu/.lambda/lib/python3.10/site-packages\")']" \
>> ~/.ipython/profile_default/ipython_config.py

That should work around the issue until a fix is released.

Edit: The above command is just a workaround.