is it ok for your family to know that you are gambling?
Yes, that's why you are family. The more you keep a secret, the more you guys are far apart. I don't think a good home would want that.
or you don't share at all and keep a secret about it?
Fine, there could be some "white lies" and cover-ups but gambling is certainly not one of them as it can shape the family if care is not taken, especially if the spouse is either losing or being addicted to it.
how is your experience on telling the person you love about your gambling habits?
I don't tell them, they naturally discover because I don't hide it. But none has ever queried me for it because I lead a responsible lifestyle and they trust my personality.