As for how to eat it, you can't eat it right away, but leave it for two days so that it won't hurt. To ensure that the pupa is alive, you can shake it before taking it, and then cut a hole with scissors to take it out. You can also take a photo under the light bulb in advance to see the size and length of the pupa.