1. Heat oven to 375 degrees F and arrange rack in middle. Butter 4 (6-ounce) ramekins and set aside.
2
2. Melt 1 tablespoon butter in a large frying pan over medium heat. When it foams, add onion, season well with salt and freshly ground black pepper, and cook until softened, about 1 minute. Add spinach and cook until spinach is well wilted, about 2 minutes.
3
3. Cook bacon until crisp, and then place on bottom of ramekins and top with spinach. Crack eggs into ramekins, place 1 tablespoon cream over each egg, and divide half of cheese evenly among ramekins.
4
4. Put ramekins on a baking sheet and bake, rotating pan halfway through baking, until whites are just set but yolks are still runny, about 10 to 15minutes. . Keep in mind that shallow ramekins will cook faster than deeper ramekins. Serve immediately.
5
5. Meanwhile, spread remaining 2 tablespoons butter on 4 slices sourdough bread. Top with grated cheese and toast until golden brown. Serve eggs with toast.