# MLS Course 1 Week 1 - Cost function-from lab\_utils\_uni import plt\_intuition, plt\_stationary, plt\_update\_onclick, soup\_bowl

**URL:** <https://community.deeplearning.ai/t/mls-course-1-week-1-cost-function-from-lab-utils-uni-import-plt-intuition-plt-stationary-plt-update-onclick-soup-bowl/312092>\
**Category:** Supervised ML: Regression and Classification\
**Tags:** week-module-1\
**Created:** [April 20, 2023, 7:31pm UTC](https://community.deeplearning.ai/t/mls-course-1-week-1-cost-function-from-lab-utils-uni-import-plt-intuition-plt-stationary-plt-update-onclick-soup-bowl/312092 "2023-04-20T19:31:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Panagiotis\_Bekirakis](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@Panagiotis\_Bekirakis](https://community.deeplearning.ai/u/Panagiotis_Bekirakis)\
**Post date:** [April 20, 2023, 7:31pm UTC](https://community.deeplearning.ai/t/mls-course-1-week-1-cost-function-from-lab-utils-uni-import-plt-intuition-plt-stationary-plt-update-onclick-soup-bowl/312092/1 "2023-04-20T19:31:10Z")

</div>

hello guys!

I have been trying to run the cost function lab in my jupyter environment and getting the error as per photo.  
 ![photo 1](https://global.discourse-cdn.com/dlai/original/3X/0/1/010ccaa5db6e75f7593f62d3ee105dba67f19936.png)

So i ve been getting error out of these two lines  
from lab\_utils\_uni import plt\_intuition, plt\_stationary, plt\_update\_onclick, soup\_bowl  
plt.style.use(‘./deeplearning.mplstyle’)

I also got a %matplotlib widget error which i fixed by adding extension (pip install ipympl)

 ![photo 2](https://global.discourse-cdn.com/dlai/original/3X/2/a/2a73d7d3ef0fb4dec0df9f582c71caedf72f123a.png)

I have downloaded from lab and uploaded all the relevant files in my jupyter environment.  
Shouldn’t this be enough or have i missed something else?

Thanks!

---

<div class="post-metadata">

**Author:** ![saifkhanengr](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/saifkhanengr/32/152858_2.png) [@saifkhanengr](https://community.deeplearning.ai/u/saifkhanengr)\
**Post date:** [April 20, 2023, 11:37pm UTC](https://community.deeplearning.ai/t/mls-course-1-week-1-cost-function-from-lab-utils-uni-import-plt-intuition-plt-stationary-plt-update-onclick-soup-bowl/312092/2 "2023-04-20T23:37:24Z")

</div>

Hi,

Downloading all the files is not enough. And, even if you install relevant libraries, there will be version compatibility issues. Check [this](https://community.deeplearning.ai/t/dls-1-my-own-project-in-pycharm/74781/4) for virtual environment in your local PC.

Best,  
Saif.

---

<div class="post-metadata">

**Author:** ![Dang\_Thi\_Kiem\_Hong](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@Dang\_Thi\_Kiem\_Hong](https://community.deeplearning.ai/u/Dang_Thi_Kiem_Hong)\
**Post date:** [May 14, 2023, 4:33pm UTC](https://community.deeplearning.ai/t/mls-course-1-week-1-cost-function-from-lab-utils-uni-import-plt-intuition-plt-stationary-plt-update-onclick-soup-bowl/312092/3 "2023-05-14T16:33:37Z")

</div>

I also encountered the same error when running the file on my personal Windows laptop, tried to fix the error as Safikhanengr said, but it didn’t work.

---

<div class="post-metadata">

**Author:** ![saifkhanengr](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/saifkhanengr/32/152858_2.png) [@saifkhanengr](https://community.deeplearning.ai/u/saifkhanengr)\
**Post date:** [May 15, 2023, 4:12am UTC](https://community.deeplearning.ai/t/mls-course-1-week-1-cost-function-from-lab-utils-uni-import-plt-intuition-plt-stationary-plt-update-onclick-soup-bowl/312092/4 "2023-05-15T04:12:25Z")

</div>

Maybe you could try Google Colab. It also has some compatibility issues but I can run most of the assignments on it. Check [this](https://community.deeplearning.ai/t/coding-environment/290232/5).
