If you want to run locally, you need more than just the notebook file. Here’s a topic that explains how to download all the files associated with an assignment.
You’ll also need to install all the software packages that are referenced by the notebook. We don’t have documentation for how to do that, but that is a generic question and you can find lots of help on that type of topic on StackExchange and other sites.
One other more subtle point is that the courses were published at different times in the past, but the whole world of python packages evolves pretty quickly. There is no guarantee that everything stays consistent and will “just work” with whatever the very latest version of all the packages are.