Skip to content

README example does not work #4

@frankharkins

Description

@frankharkins

When running the example from the README in a notebook I get the following error:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[2], line 7
      4 import warnings
      6 warnings.simplefilter('ignore')
----> 7 debugger = Debugger(view_type = "jupyter")
      8 backend = FakeCasablanca()
      9 circuit = random_circuit(num_qubits = 4, depth = 5 , seed = 44)

TypeError: Debugger() takes no arguments

If I move view_type = "jupyter" to debugger.debug(... then the cell runs but I get a Javascript error instead. Here's from my browser console.

Error: Module @jupyter-widgets/controls, version ^1.5.0 is not registered, however,         2.0.0 is
    loadClass http://localhost:8889/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.fe2572ece3b7955c89bb.js?v=fe2572ece3b7955c89bb:1
    loadModelClass http://localhost:8889/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/336.0a90bd910629a565bb7e.js?v=0a90bd910629a565bb7e:1
    _make_model http://localhost:8889/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/336.0a90bd910629a565bb7e.js?v=0a90bd910629a565bb7e:1
    new_model http://localhost:8889/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/336.0a90bd910629a565bb7e.js?v=0a90bd910629a565bb7e:1
    handle_comm_open http://localhost:8889/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/336.0a90bd910629a565bb7e.js?v=0a90bd910629a565bb7e:1
    _handleCommOpen http://localhost:8889/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.fe2572ece3b7955c89bb.js?v=fe2572ece3b7955c89bb:1
    _handleCommOpen http://localhost:8889/static/notebook/3676.bundle.js:1

Relevant version info

qiskit==0.43.0
qiskit-aer==0.12.0
qiskit-ibmq-provider==0.20.2
qiskit-ignis==0.7.0
qiskit-terra==0.24.0
qiskit-trebugger==1.1.2
jupyter-events==0.9.0
jupyter-lsp==2.2.4
jupyter_client==8.6.0
jupyter_core==5.7.1
jupyter_server==2.13.0
jupyter_server_terminals==0.5.2
jupyterlab==4.1.4
jupyterlab_pygments==0.3.0
jupyterlab_server==2.25.3
jupyterlab_widgets==3.0.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions