Missing utils Module for plot_lines Function

Hi everyone,

I am currently working through the Week 1 lab on Linear Systems as Matrices using Python and the NumPy package. The lab instructions include visualizing 2x2 systems as plot lines using a function called plot_lines from a module named utils.

However, I am encountering a ModuleNotFoundError because the utils module is not provided in the course materials.
Could someone please provide the utils.py file or the definition of the plot_lines function? Alternatively, any guidance on how to create this module and function myself would be greatly appreciated.

Thank you in advance for your help!

Are you working in Coursera Labs, or are you using some other platform?

Hi Tmosh,

Thank you for your response. I am currently using VS Code to work on the Week 1 lab for Linear Systems as Matrices. I downloaded the code from Coursera Labs, where the utils module works correctly. However, when I try to run the code in VS Code, I encounter a ModuleNotFoundError for utils.

To ensure my code runs outside of Coursera Labs, I would like to understand what the utils module contains, specifically the plot_lines function. Could you provide the content of utils.py or guide me on how to recreate it?
I want to ensure that I can run this code successfully in VS Code and understand how to create or locate the utils.py file for future use outside of Coursera Labs.

Thank you for your help!

The course staff only support the Coursera Labs platform. If you want to work on other platforms, that’s left for you to achieve.

When you open the notebook in Coursera Labs, in the top right corner, you’ll find a a “Lab Files” tool. From there you can download a zip file with all of the materials.

thank u so much for the help!