It is best to have an empty stomach during a yoga session, so leave at least 2 hours between a main meal and yoga.
Digestion of food requires energy, and when you do yoga after a meal, your energy goes to the muscles you’re exercising and the body can’t digest the food properly.
If you find you are very hungry before yoga you could have a small snack like a few nuts or half a banana.