What causes gnocchi to pop violently when fried?
I think it's because there is water inside the gnocchi paste, which turns into vapor and builds up pressure. A little bit like why you shouldn't throw an ice cube in hot oil.

You can pan fry them, but not deep-fry them.