I have, and another woman in my neighborhood has (which gave me the idea
to give it a try anyway). I've since moved, but I find that they grow
well in part sun (maybe 6 hours of sun a day) especially if you can find
a spot that gives them shade during the hottest part of the day.
Lots of compost and don't let them dry out during drought, too.
I assume a container would be no problem, especially if it was a big
self-watering type.
Eliza