500 internal Error when launching python notebook

Hi,

jupyter notebook open fine after launching, but I get a 500: internal error whenever I try to open a python notebook. I am on a macbook (Monterey OS). What can I do to solve this?