Sweat the onion and garlic in butter. Add the ham, dust with flour and stir briefly. Pour on the cream, continue stirring and pour on the broth. Add the spinach and finely chopped carrots.
In the meantime, cook the gnocchi according to the instructions on the packet.
Season the sauce with oregano and, if necessary, thicken with flour. Serve with the gnocchi.