@Wenhao_Sun good to hear that the code works on your local machine. Before we dig deeper, can you share which versions of pymatgen
and mp-api
you’re using? And confirm that they’re the same on your local machine and Nanohub? @Matthew_Greenberg would you mind sharing the code versions that are working for you?
I have a suspicion why Nanohub might be getting blocked but I’d want to confirm the above basics first before exploring an exception for Nanohub.