How to execute the code in optional lab?

Every time I try to run the code in any optional lab it shows the error.
So each time I have to paste the previous lines into this window, to run the code lines properly.

Any other to execute these lines so that it won’t show the error?

Thank you.

Every time you open the notebook, you must run every code cell starting from the top of the notebook.

Which optional lab are you referring to? Please give the notebook name exactly.

I found it, it’s the lab for Feature scaling and learning rate.

The first cell in the notebook imports all of the assets, including the load_house_data() function. You must run this cell when you open the notebook.