I don't think USB from the computer can/will supply the needed current for 24 WS2812Bs.
You could check yours, see what the ports are rated for.
My laptop has a Thunderbolt 3 USB 3.1 charging port, so I'm guessing it can provide the
necessary 1.44 Amps needed to power the LEDs on full brightness when on white.
Caveat: Even though it says the drawn power of each pixel might be up to 60mA, in reality, the drawn power will be much lower due to not all pixels being on full brightness all the time, and I could always set the maximum brightness to be 80% of max.
You never power an LED string or servo or motor from the Vin pin. If the board and the LED string are both 5V, then just wire them in parallel.
I'm just curious why y'all are recommending putting in a separate power supply (Rechargeable battery? How would I charge it?) when the person that was doing
this DIY project managed to get it fully working using only the VIN pin on his Particle Photon board (Step 3.3) and providing data through a 3.3V IO pin (without using a logic-level converter).
By "wire them in parallel", what would be the
input? Would it be an
adapter board? Would that adapter board be capable of providing the necessary current to power the LEDs on full brightness?
Please also put in context my project restrictions. I'm using only 24 LEDs (28 cm in length) that are a couple of cm (or less than 1 inch) away from the microcontroller. I'm also tight on space, so not using a separate battery to power the LEDs would be a good thing.