Halve the avocados, remove the stone and remove the pulp from the skin. Peel the garlic cloves and finely puree them with the avocado pulp, basil, lemon juice, almonds and olive oil. Season to taste with salt and pepper.
Heat the butter in a pan and fry the gnocchi until golden brown. Set aside and keep warm.
Halve the cherry tomatoes, heat a little butter in a pan and add the tomato halves with the sugar. Reduce the heat, then add the avocado pesto and gnocchi and mix well. Season to taste with salt and pepper.
Grate the parmesan. Arrange the gnocchi on plates and serve sprinkled with parmesan.