Failed to load model class 'MPLCanvasModel' from 'jupyter-matplotlib'

When I try to run the scripts on my personal computer, I get the below error when I run the notebook C1_W1_Lab03_Cost_function_Soln.

Failed to load model class ‘MPLCanvasModel’ from module ‘jupyter-matplotlib’
Error: Script error for “jupyter-matplotlib”
http://requirejs.org/docs/errors.html#scripterror
at makeError (http://localhost:8888/static/components/requirejs/require.js?v=d37b48bb2137faa0ab98157e240c084dd5b1b5e74911723aa1d1f04c928c2a03dedf922d049e4815f7e5a369faa2e6b6a1000aae958b7953b5cc60411154f593:168:17)
at HTMLScriptElement.onScriptError (http://localhost:8888/static/components/requirejs/require.js?v=d37b48bb2137faa0ab98157e240c084dd5b1b5e74911723aa1d1f04c928c2a03dedf922d049e4815f7e5a369faa2e6b6a1000aae958b7953b5cc60411154f593:1735:36)

I have all the dependencies copied to the directory. Any ideas anyone?
Steps taken so far by me:

  1. $jupyter nbextension list - shows all ok
  2. $pip install --upgrade jupyter-matplotlib matplotlib ipywidgets traitlets - says requirements already satisfied

You have to use the exact same versions of the packages as were used by Coursera’s Labs environment.

That’s not the newest version of anything.

Thanks.
I think it would be too much work to set it up that way. I have dropped that idea :slight_smile: