qiskit-tutorials icon indicating copy to clipboard operation
qiskit-tutorials copied to clipboard

Duplicated circuit visualizations on Quantum Lab

Open filippotramonto opened this issue 3 years ago • 3 comments

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

filippotramonto avatar May 11 '21 20:05 filippotramonto

Duplicate of #1201

@nonhermitian This issue can be closed

clausia avatar Jul 13 '21 07:07 clausia

I dont have %matplotlib inline explicitly defined in my notebook but circuit.draw('mpl') produces 2 outputs. Any ideas whats happening there?

zohimchandani avatar Aug 10 '21 11:08 zohimchandani

I dont have %matplotlib inline explicitly defined in my notebook but circuit.draw('mpl') produces 2 outputs. Any ideas whats happening there?

Hey you can look in Qiskit/qiskit-terra#6889. Hope this helps 🙂

divshacker avatar Aug 10 '21 12:08 divshacker