qiskit-tutorials
qiskit-tutorials copied to clipboard
Duplicated circuit visualizations on Quantum Lab
Informations
- Qiskit version: qiskit version present on Quantum Lab
- Python version: Python version on Quantum Llab
- Operating system: OS on Quantum Lab
What is the current behavior?
In all tutorials where the command %matplotlib inline
in executed, when then the command .draw('mpl')
is executed for visualize the circuit the circuit is drawn 2 times.
Steps to reproduce the problem
- run a cell containing
%matplotlib inline
- run a cell containing
.draw('mpl')
What is the expected behavior?
The circuit should be drawn only one time
Suggested solutions
Remove the line with %matplotlib inline
Duplicate of #1201
@nonhermitian This issue can be closed
I dont have %matplotlib inline
explicitly defined in my notebook but circuit.draw('mpl')
produces 2 outputs. Any ideas whats happening there?
I dont have
%matplotlib inline
explicitly defined in my notebook butcircuit.draw('mpl')
produces 2 outputs. Any ideas whats happening there?
Hey you can look in Qiskit/qiskit-terra#6889. Hope this helps 🙂