udacity/deep-learning-v2-pytorch

kernel keeps dying

jagja opened this issue · 2 comments

jagja commented

trying to run the jupyter notebook, the kernel dies usually when matplotlib functions are called.
have tried several suggested workarounds, issue remains.

is your memory enough. I have same problem while dealing with big data model.

possible soultions for the above issue:-

  1. Check Matplotlib Backend:-
    Certain backends of matplotlib can sometimes cause issues
    sample snippet:-
import matplotlib
matplotlib.use('agg')  # Or try 'TkAgg', 'Qt5Agg', etc.

import matplotlib.pyplot as plt
  1. update the version of the dependencies and also check the memory usage
  2. Also might try running it different env
  3. If the above doesn't work, try installing it again

Hope this helps
Thanks