During a session, it is better if you are not very full. Therefore, you can set aside 2 hours between a meal and yoga.
Energy is used when food is digested. Thus, if you do yoga exercises after having a meal, the energy goes into the exercise. As a result, your body will not be able to properly digest food. You can have nuts or half a banana to have energy if you become too hungry.