The kernel appears to have died. It will restart automatically

Hi,
I got the message “The kernel appears to have died. It will restart automatically.” every time when I ran from fastbook import * in jupyter notebook on my laptop. Would someone tell me the reason? thank you.

Your query provides a tiny pinhole view on your issue that makes it difficult to advise. Some info that would help:

  1. What operating system version are you on?
  2. What software versions are you running: python, jupyter, fastai, fastbook?
  3. Which instructions did you use to install the software?
  4. Have you watched the LIve Coding videos?
  5. What other things have you tried that do work?
  6. Your snapshot shows cells with multiple lines, so how do you determine which line is the problem?

Thanks for your help, here are the details.

  1. What operating system version are you on?
    macos monterey.
  2. What software versions are you running: python, jupyter, fastai, fastbook?
    python 3.9, jupyter notebook, fastbook
  3. Which instructions did you use to install the software?
    I installed python3.9 with mambaforge installer first, then installed ipython and jupyterlab. Finally I installed fastbook.
  4. Have you watched the [LIve Coding videos]?
    Yes
  5. What other things have you tried that do work?
    I tried to run from fastai.vision.widgets import * first, then ran from fastbook import *, it was fine, like this

However, if I run from fastbook import * first, the kernel died.

  1. Your snapshot shows cells with multiple lines, so how do you determine which line is the problem?
    I have updated the screenshots as above. I am not sure about the reason.
1 Like

Cool. Now I can share I don’t have a Mac, so might not be much use to you - but the detail should help the next person help. I can only report it works for me on WSL, when running `from fastbook import *’ first per snapshot in your original post.

Thanks for sharing. I tried on Paperspace, there is no problem. I was wondering if it is the operating system issue.

1 Like