Skip to content

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())