It would be helpful to quantify "plenty dense" here. Paris has a population density of 21498/km2. Turning that around, that's roughly 46 square meters per person. That doesn't leave a whole lot of space for a potato plot if you're supposed to cook and eat those potatoes somewhere, too.
Cities can be plenty dense while still having enough space for people to grow potatoes for themselves and their neighbors.