I have downloaded the workspace and installed Anaconda.
I launched the Jupyter Notebook in Anaconda, then I opened the downed file in Jupyter Notebook. But when I run the code, it shows me some errors. I assume it is something related to the setup environment. But I am not sure what to do.
If you know how to solve this issue, I would really appreciate your kind help.
Many thanks in advance.
That version of public test is just some random thing off the internet that has no necessary relationship to the courses here. They provide a very specific file called public_tests.py with each assignment here in DLS, as you can see from reading the actual exception trace provided here. In this particular assignment, for some reason, they have not included the test utility files required as a separate local “py” file. It looks like they did it this way everyplace in Course 2. If you go to any of the assignments in DLS Course 1, you’ll find that there is a local file test_utils.py which has the functions being imported here. You’ll need to edit the file public_tests.py to import from the new local file test_utils.py once you download it.
Also note as a general matter that there is no “official” support for running in other environments: it’s too much of a pain to have to deal with all possible cases that someone might hit in a whacky environment. So if you’re going to play this game, then you need to have the “chops” to solve problems like this in general. Of course it never hurts to try asking on the forum and maybe you get lucky and someone else has stepped on the same landmine and can offer help. But if no answer is forthcoming, then sorry, but we can’t guarantee a fix for all possible problems you may hit.