A new closed cell is presented for in situ X-ray ptychography which allows studies under gas flow and at elevated temperature. In order to gain complementary information by transmission and scanning electron microscopy, the cell makes use of a Protochips E-chip (TM) which contains a small, thin electron transparent window and allows heating. Two gold-based systems, 50 nm gold particles and nanoporous gold as a relevant catalyst sample, were used for studying the feasibility of the cell. Measurements showing a resolution around 40 nm have been achieved under a flow of synthetic air and during heating up to temperatures of 933 K. An elevated temperature exhibited little influence on image quality and resolution. With this study, the potential of in situ hard X-ray ptychography for investigating annealing processes of real catalyst samples is demonstrated. Furthermore, the possibility to use the same sample holder for ex situ electron microscopy before and after the in situ study underlines the unique possibilities available with this combination of electron microscopy and X-ray microscopy on the same sample.