I am trying to run below code in PyCharm:
from qiskit.circuit.library import MCXGate, HGate
from qiskit import QuantumCircuit
circuit = QuantumCircuit(4)
circuit.append(HGate(), [0])
circuit.append(MCXGate(3), [0,1,2,3])
circuit.draw('mpl')
But I don't see any output circuit. The plot window flashes for a bit but it immediately closes itself. If I use inline figures then I can get the circuit diagram but I want the interactive version. Can someone please help me with this issue. I have always used PyCharm for my other projects so I don't really want to change to another IDE.