A JupyterLab extension for Qiskit Code Assistant
You can also use the VSCode extension if you dont have access to Jupyterlab
This extension is composed of a Python package named qiskit_code_assistant_jupyterlab
for the server extension and a NPM package named qiskit-code-assistant-jupyterlab
for the frontend extension.
- JupyterLab >= 4.3.0
- Access to either:
- An IBM Quantum premium account
- A local LLM service (e.g., Ollama with Qiskit models)
- A service exposing LLMs using OpenAI-compatible API endpoints
To install the extension, execute:
pip install qiskit_code_assistant_jupyterlabUse IBM's hosted service with a premium account for the best experience:
- Get your API token from IBM Quantum
- Start JupyterLab:
jupyter lab - Click the status bar when prompted and enter your API token
- Select a model
See GETTING_STARTED.md for detailed setup instructions.
If you have multiple IBM Quantum credentials configured in your ~/.qiskit/qiskit-ibm.json file (e.g., for different environments like production and development), the extension will automatically prompt you to select which credential to use when it starts. You can choose to select one from the file, enter a token manually, or dismiss the prompt to use automatic selection. See docs/credential_selection.md for detailed instructions.
If you don't have an IBM Quantum Premium account, run the Qiskit Code Assistant entirely on your local machine:
bash <(curl -fsSL https://raw.githubusercontent.com/Qiskit/qiskit-code-assistant-jupyterlab/main/setup_local.sh)For automated/CI setups, use non-interactive mode:
bash setup_local.sh --non-interactive
# Or: bash setup_local.sh -yThis one command will:
- Detect and use
uvfor faster installations (if available) - Check and optionally install JupyterLab
- Always upgrade the extension to the latest version
- Install and configure Ollama
- Download the Qwen2.5-Coder 14B model (optimized for Qiskit)
- Set up the JupyterLab extension automatically
Note: Requires Python 3.8+ and 16GB+ RAM for optimal performance. For faster installations, consider installing uv.
For detailed instructions, see LOCAL_SETUP.md.
To remove the extension, execute:
pip uninstall qiskit_code_assistant_jupyterlab- Local Setup: See LOCAL_SETUP.md for running models locally with Ollama
- Cloud Setup: See GETTING_STARTED.md for using IBM Quantum Cloud
To learn more about contributing or installing locally read CONTRIBUTING.
- End User License Agreement (EULA) acceptance required before starting to use the model acceptance required before starting to use the model
- Terms of use: https://quantum.ibm.com/terms
- Privacy policy: https://quantum.ibm.com/terms/privacy
- Cloud Services Agreement https://www.ibm.com/support/customer/csol/terms/?id=Z126-6304&cc=us&lc=en
- IBM Cloud Service Description https://www.ibm.com/support/customer/csol/terms/?id=i126-6605&lc=en