I’m trying to use PyQt5 inside of a Jupyter notebook loaded from a GitHub repository with Binder so I can browse headlessly and scrape a website. However, when I try to create a QApplication object with
app = QApplication(sys.argv), I get this message from the webpage: “The kernel appears to have died. It will restart automatically.”
This does not happen I use PyQt5 in a local Jupyter notebook, so I’m not sure if I’m doing something wrong or if this just isn’t possible in notebooks loaded with Binder. I’ve also run into errors with other packages meant for headless browsing in Binder-loaded notebooks, but I’ll stick to asking about PyQt5 for now.
I’ve included PyQt5 in my repository’s
requirements.txt file and the Qt dependencies listed in sections 2.1 and 2.2 on this page in my
apt.txt file. I don’t have any problems importing
Does anyone have ideas on how to troubleshoot?