Always show up prepared
Compile everything you’ll need to complete your task before you start working.
Bring your laptop charger to the library, carry functional pens or pencils, and gather relevant files or paperwork in advance.
Every time you stop working to retrieve some missing item, you lose focus. A few minutes of prep saves you countless hours of distraction.