1Heat the oven to 190°C. Bring a large pot of salted water to a rolling boil and cook the tagliatelle for 2 minutes less than the packet time. Drain and keep a cup of the cooking water.
2In a large bowl, mix the ricotta, pesto, grated parmesan and 3 tablespoons of the cooking water until smooth.
3Toss the hot pasta in the ricotta mixture until every strand is coated, adding a splash more cooking water if it looks stiff.
4Spread the pasta in an oven dish and scatter the mozzarella and chopped pistachios over the top.
5Bake for 20 minutes, until the cheese is bubbling and golden at the edges.
6Leave to rest for 5 minutes, then serve with black pepper.