Co-working spaces are useful when an extra bedroom would cost you $500/mo (or much more) anyway.
Libraries where I live have limited seating. Cafes can be really hit or miss in terms of power outlets, large enough desk space, and noise. Both don't have 24/7 access, nor do they allow you to set up a workstation with monitors.
They are not worthwhile if you have ample space in your home and only desire to get out a few hours a week to a cafe.