Heat the oil in a large frying pan. Add the gnocchi, making sure you separate them, and fry for 4 minutes. Then turn them around and give them another 4 minutes.
Or if you'd prefer to bake them, tumble the gnocchi into a roasting pan, add the oil, and put it into a preheated 400 degrees F oven for 20 minutes, giving them a stir after 10 minutes.
I would not advise frying frozen gnocchi, as they could cause the fat in the pan to splatter.