Skip to content
New: Star-import, signal unraveling, Python 3.12 support, and more

#
Compilation

Numba can be disabled globally by setting an environment variable, or by changing the config (see Environment variables).

Disable Numba via an environment variable

    import os

    os.environ["NUMBA_DISABLE_JIT"] = "1"

Disable Numba via the config

    from numba import config

    config.DISABLE_JIT = True

Same can be done by creating a configuration file (such as `vbt.config`) with the following content:

    [numba]
    disable = True

Note

All the commands above have to be done before importing VBT.

To check whether Numba is enabled, use is_numba_enabled.

Check whether Numba is enabled

    print(vbt.is_numba_enabled())

#### Cookie consent

We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. With your consent, you're helping us to make our documentation better.

- Google Analytics
- GitHub

Manage settings