Search code examples
pythonquantum-computingqiskit

Where was Qiskit-Textbook downloaded?


I've installed Qiskit-textbook by pip install git+https://github.com/qiskit-community/qiskit-textbook.git#subdirectory=qiskit-textbook-src. But I don't know where is it downloaded


Solution

  • That command installs the Qiskit Textbook package, which is a Python package containing some of the problems and widgets used in the textbook. You can see the location of an installed package using pip show <package>:

    pip show qiskit-textbook
    

    output:

    Name: qiskit-textbook
    Version: 0.1.0
    Summary: A collection of widgets, tools and games for using along
      the Qiskit Textbook. See the textbook and a list of contributors at qiskit.org/textbook
    Home-page: UNKNOWN
    Author: Qiskit Team
    Author-email: hello@qiskit.org
    License: UNKNOWN
    Location: /usr/local/anaconda3/lib/python3.7/site-packages
    Requires: ipython, matplotlib, numpy, qiskit, ipywidgets
    Required-by: 
    

    From which I can see my package is installed at /usr/local/anaconda3/lib/python3.7/site-packages.

    If you want to download the Jupyter notebooks (i.e. the pages of the textbook), you can do this from the Github page. There is a big green button labelled "code" if you click it, you can either get the link to clone it through git, or download it as a .zip. All the pages are inside the "content" folder.