// add these directories to sys.path here. If the directory is relative to the
// documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath(os.path.pardir))
sys.path.insert(1, os.path.abspath("sphinxext"))
// -- General configuration ------------------------------------------------
After Change
return MagicMock()
MOCK_MODULES = ["cvxopt", "cvxpy", "numexpr", "numpy", "pandas", "scipy", "scikit-learn"]
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)