Skip to content

Instantly share code, notes, and snippets.

@MohamedElashri
Last active January 30, 2021 07:01
Show Gist options
  • Save MohamedElashri/b5e7070487297a27d8419beee5e0d308 to your computer and use it in GitHub Desktop.
Save MohamedElashri/b5e7070487297a27d8419beee5e0d308 to your computer and use it in GitHub Desktop.
Fix Jupyter Notebook krenel dying in Mac M1
  1. First find eventsloop.py file To get this file we user either terminal or finder to search for.

  2. Open terminal and write nano filepath/ipykernel/eventloops.py In my case it will be nano /opt/homebrew/lib/python3.9/site-packages/ipykernel/eventloops.py

  3. navigate to def _use_appnope() change the return to return sys.platform == 'darwin' and V(platform.mac_ver()[0]) >= V('10.9') and platform.mac_ver()[2] != 'arm64'

  4. Once you have made that edit and are sure you haven’t created a typo, then hold Control and hit x to exit.

  5. It will ask you to save. Press y. Then press Return.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment