Setting up a debug environment usin

Hi,
I’m trying to setup a debug environment so that I can test my solutions before using pytest. The pytests use the mflix.db and has it’s own functions that as far as I can tell aren’t available for general use. So, I’m trying to setup something in jupyter notebook. Sometimes it works, but sometimes it fails for more complex tasks. Has anybody had any luck or setups they could share?

Thanks.