The first thing is to return to gentle exercise, so walking is a good start and then you can gradually introduce gentle stretches but I would leave the weights at the gym for another couple of weeks. Your body will tell you when you are starting to overdo things, so do not 'push through' the pain but use it as a marker for stepping back a bit.
You may want to see a physical therapist or trainer for help in returning back to the machines, and you will need to start gentle again with those and build up to your previous limits over time.
Do you think I should also wait a couple of weeks before I return to my yoga class?
You will be slightly out of condition, after the gap as well as sore so you will not be able to do the more complicated workouts, however gentle body stretches and curls in yoga may be fine as long as you warm up/down adequately and stop if pain occurs.
Pharmacist
MRPharmS. Worked as Community pharmacist for 16 years. Undertaking a second degree in medicine.