Technical problem in Python

Dear All,

I am facing problem in running code that call function “plot_weights” in W1D4_Tutorial2

I tried to upgrade the matplotlib but I am facing another problem in the update process


And here is the function of the tutorial

Please Help
Thanks

‘use_line_collection’ option causes the issue.
However, pip install --user --upgrade matplotlib solves the problem (from a quick search on the web)

2 Likes

I first needed to update pip, then tried to update matplotlib, but not permitted, then I found out that it needed to be restarted so pip command could be used to update matlab.

Thanks spiroschv

1 Like

pip install --user --upgrade pip
pip install --user --upgrade matplotlib

So, now is working?

1 Like

yes, but with out --user, I run the cmd as administrator