This injection pen (2) is used to inject an active ingredient into the body of a patient, and comprises an electric motor (40), a cartridge for storing said active ingredient, a piston adapted to slide within said cartridge, a mechanism (52, 56) for pushing said piston within said cartridge, which is driven by the motor during an injection, a display screen (18) and means for controlling (8) the quantity of active ingredient to be injected. The motor (40), the pushing mechanism (52, 56) and the cartridge are aligned along a common longitudinal axis (X2). The pen further comprises means (20, 40) for vibrating the cartridge (28) in order to remove any air bubbles adhering to the wall of the cartridge.Ce stylo injecteur (2) est utilisé pour injecter un principe actif dans le corps dun patient et comprend un moteur électrique (40), une cartouche de stockage du principe actif, un piston, adapté pour coulisser à lintérieur de la cartouche, un mécanisme (52, 56) de poussée du piston à lintérieur de la cartouche, qui est entraîné par le moteur lors dune injection, un écran daffichage (18) et des moyens de commande (8) de la quantité de principe actif à injecter. Le moteur (40), le mécanisme de poussée (52, 56) et la cartouche sont alignés suivant un axe longitudinal commun (X2). Le stylo comprend, en outre, des moyens (20, 40) pour faire vibrer la cartouche (28) pour ainsi décoller déventuelles bulles dair accrochées à la paroi de la cartouche.