> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qbraid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Magic Commands

You can access the CLI directly from within [Notebooks](/v2/lab/user-guide/notebooks)
using IPython [magic commands](https://ipython.readthedocs.io/en/stable/interactive/magics.html). First, configure
the qBraid magic command extension using:

```shell theme={null}
$ qbraid configure magic
```

The above command can also be executed from within a Jupyter notebook using the `!` operator. Then, from within a
notebook cell, load the qBraid magic IPython extension using:

```python theme={null}
In [1]: %load_ext qbraid_magic
```

Now you can continue to use the qBraid-CLI as normal from within your Jupyter notebook using the magic `%` operator, e.g.

```python theme={null}
In [2]: %qbraid

In [3]: %qbraid --version
```
