Easy. The next time she does it, grab her by the hair and shove her face into the coffee maker. Then turn on the hot water.
Say "oh I am sorry but I have a deadline to meet - lets chat another time"
Repeat as needed
If that is failing "so and so, I have a lot of work to do today. I really need my silence to concentrate"
If that fails
"boss, I have coworker who is a complete distraction - what can I do?"
I got to sleep on them. Probably a bad idea at work. :-) I think I would be blunt but polite, if they continued, go back to work and ignore them. They want atention, don't feed it.
I have just met my first non stop talker and I am 68 years old. It is insulting for someone to talk and talk without even caring who they talk to and never listening to anything you say. In my case the husband wants me to absorb the non stop babble instead of him and I am putting a fast end to that. The person has a compulsive disorder and needs professional help and not use you like toilet paper. Be firm and let them know there is something wrong they need to get help with.
The last time I had a co-worker with that problem I just punched him in the face. Settled that in a hurry.
By coincidence, we talked yesterday in the office about working from home. It turned none of us really liked being home alone. No chatter, no feeling of being in a collective pressure-cooker. If you have to be under pressure, then better do it together with your peers. In your case, the problem is that the chatterbox is not really your peer. Her priorities are different from yours.
I usually skulk away
I've got the same problem with my Mom.
What I'm trying is to talk more than her and It seems to work she gets so annoyed that she leaves.
And this is even funnier when I'm stoned. I just laugh away and joke about everthing she say's.
I still love you Mom.