-
Notifications
You must be signed in to change notification settings - Fork 22
Description
While addressing #163, I couldn't run notebook tests on examples/ibmq_compile.ipynb
because the notebook prints images for pulse schedules which change on each iteration. To elaborate, the pulse schedule drawing mentions the schedule id number at the top, which is unique and changes on each run, so the id is different in the notebook run that I submit to github and the one which is produced when github runs the notebook test (attaching image for reference).
I've tried a couple of different ways (see jupyter/nbclient#151) without success. Ideally, we should be able to either ignore all cells with images, or less preferably go into the notebook metadata and specify which cells should be ignored by pytest-notebook.
I'll add that this is one of a number of roadblocks I have faced with pytest-notebook, and while I found ways to deal with the other ones, it did take a while - which makes me wonder if there is a preferred alternative to pytest-notebook.