I have a command-line Python script that makes a Matplotlib plot and either saves it to a file or displays it, using the interactive window that Pyplot's show() opens up when running outside a notebook but with access to a windowing system.
If I replace my show() call with show_with_alt(), I don't get a GUI window anymore. Instead, I get this:
/private/home/anovak1/.local/lib/python3.10/site-packages/matplotalt/matplotalt.py:180: UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
plt.show()
Does show_with_alt() only contemplate being used within a notebook environment?