Cook the onions and celery in boiling water for 5 to 10 minutes or until celery is tender; drain.
Combine the onion mixture and butter in a bowl; mix well.
Spoon into a glass baking dish.
Sprinkle slivered almonds then flour; stir the flour into the onion mixture.
Bake at 350 degrees for 45 minutes or until browned.