The battery won't last as long as when you carry it, but it's generally easier and more fun if you try riding it. There's probably a youtube video somewhere which shows how ..
If you do insist on carrying it, I'd consider buying a lightweight eMTB like a Levo SL or Orbea Rise. These bikes are designed for people who prefer to carry their bikes rather than ride them and they come with tiny tiny little batteries and motors from electric razors because they're not really designed to be ridden.
If you have any complex's about how you look, Specialized make a carry bike just for that Market. The Kenevo SL ! It has a funkier looking suspension setup so owners can walk peacefully and confidently around the countryside carrying their bikes, knowing that people will be looking at their bike, not at them.