Why is my (working) code (which makes an interactive plot) not working anymore when putting it inside a function?
I made an interactive plot with python using matplotlib and I want to call it by putting it inside a function.
Everything works until I put my whole code inside the function make_plot(). Running the code without the make_plot() function gives me exactly what I want. Why is it not working anymore when inside another function (I just lose the interactive functionality)?