Practice lab: C1_W2_Linear Regression load data()

However, I can still not see the image C1_W3_LogisticRegression_left.png in the notebook directly.

As i mentioned earlier, it would be good to google up the issue and see what suggestions have been posted - Try them out. The good news is that the important/functional parts are working fine in your local environment.

Ok. I will try it later when I have time. You are right.

I make progress :smile:

I have another question now. I saved lab files für C1_W1_Lab04_Cost_function_Soln into the folder C:\Xingyi_Python\MachineLearningSpecilization\Video_Lab\Supervised Machine Learning_ Regression\Week1\C1_W1_Lab04_Cost_function_Soln

Then I uploaded this file into Jupyter Notebook and made some change, e.g. I added
import os
print(“Current working directory: {0}”.format(os.getcwd()))
os.chdir(‘C:/Xingyi_Python/MachineLearningSpecilization/Video_Lab/Supervised Machine Learning_ Regression/Week1/C1_W1_Lab04_Cost_function_Soln’)
print(“Current working directory: {0}”.format(os.getcwd()))
print(“Content of working directory: {0}”.format(os.listdir()))

Then I saved this change in the Notebook directly.

Then I deleted this file from the Jupyter Home and upload it again. However, my change is lost!

That means, this change is not saved into the C1_W1_Lab04_Cost_function_Soln (Type: JetBrains DataSpell) in the folder C:\Xingyi_Python\MachineLearningSpecilization\Video_Lab\Supervised Machine Learning_ Regression\Week1\C1_W1_lab01_Python_Jupyter_Soln.

How can also save the change into the C1_W1_Lab04_Cost_function_Soln (Type: JetBrains DataSpell) on the local folder?

Hello @Xingyi_Shi,

Is your anaconda running from computer A but you are using computer B to access your anaconda? Or your anaconda is running on the same computer you are using to access it?

Raymond

Hi, no, from the same computer.

And you have two C1_W1_Lab04_Cost_function_Soln.ipynb files, and they are in different locations?

One is at C:\Xingyi_Python\MachineLearningSpecilization\Video_Lab\Supervised Machine Learning_ Regression\Week1\C1_W1_lab01_Python_Jupyter_Soln.ipynb. What about the second one?

1 Like

I don’t have second one. What I did was, in Jupyter Home, I uploaded this file C:\Xingyi_Python\MachineLearningSpecilization\Video_Lab\Supervised Machine Learning_ Regression\Week1\C1_W1_lab01_Python_Jupyter_Soln.ipynb. And Then, I opened this lab bei double click. A separate window opened, in this window, I added

import os
print(“Current working directory: {0}”.format(os.getcwd()))
os.chdir(‘C:/Xingyi_Python/MachineLearningSpecilization/Video_Lab/Supervised Machine Learning_ Regression/Week1/C1_W1_lab01_Python_Jupyter_Soln’)
print(“Current working directory: {0}”.format(os.getcwd()))
print(“Content of working directory: {0}”.format(os.listdir()))

then save.

OK. I suggest you to edit C:\Xingyi_Python\MachineLearningSpecilization\Video_Lab\Supervised Machine Learning_ Regression\Week1\C1_W1_lab01_Python_Jupyter_Soln.ipynb directly, without making a separate copy by uploading.

See if you can follow this instruction to set the startup directory of your jupyter notebook to, say, C:\Xingyi_Python. If you can, then restart the jupyter notebook server (or restart your computer then start the jupyter notebook server), then you can browse from C:\Xingyi_Python to find C1_W1_lab01_Python_Jupyter_Soln.ipynb and edit it directly.

Raymond

Good idea. Let me try it now and will come back

I got it. thanks. Let me continue to test it

Brilliant. Please open a new thread when you have a new question.