Issue Report => plt.show() can not work, solution & will trigger another issue of assigment submission error

Issue1 description:

I encountered one issue that “plt.show()” is not working and output as below:

The solution I found is to instead of using:

“%matplotlib widget”, you can change to “%matplotlib inline” will fix this issue.


But it will cause issue2 with description as below:

Assigment submission failure

The solution is to change back to “%matplotlib widget”, and re-run it again, you will allow to submit successfully.

Although, I found solutions for above issue1 and issue2, but I think if we have a better solution for issue1? and also questions why we are having the problems for issue1 and issue2, even I found solutions throught AI support, but still not understanding why, any one can help?

I think this issue is often due to your browser running an extension that is blocking pop-ups (such as privacy tools, ad blockers, etc.). Try disabling them.

Also:
Try an anonymous or private browser session.

Or try clearing your site cookies.

Some of these methods have worked for other learners.