{"id":46416,"library":"sparsediffpy","title":"SparseDiffPy","description":"Python bindings for SparseDiffEngine, an algorithmic differentiation library that computes sparse Jacobians and Hessians efficiently using graph coloring methods. Current version 0.4.0, requires Python >=3.11. Active development with monthly releases.","status":"active","version":"0.4.0","language":"python","source_language":"en","source_url":"https://github.com/SparseDiffEngine/sparsediffpy","tags":["automatic differentiation","sparse jacobian","hessian","algorithmic differentiation"],"install":[{"cmd":"pip install sparsediffpy","lang":"bash","label":"pip install"}],"dependencies":[{"reason":"core dependency for array operations","package":"numpy","optional":false}],"imports":[{"wrong":"from sparsediff import Jacobian","symbol":"Jacobian","correct":"from sparsediffpy import Jacobian"}],"quickstart":{"code":"from sparsediff import Jacobian\nimport numpy as np\ndef f(x):\n    return np.array([x[0]**2 + x[1]**2, x[0]*x[1]])\nJ = Jacobian(f, np.array([1.0, 2.0]))\nprint(J.compute())","lang":"python","description":"Compute sparse Jacobian of a 2D function at a point"},"warnings":[{"fix":"Use `from sparsediff import Jacobian, Hessian`","message":"Import path: use `from sparsediff import ...`, NOT `import sparsediffpy`. The package name on PyPI is sparsediffpy, but the importable module is sparsediff.","severity":"gotcha","affected_versions":"all"},{"fix":"Call `compute(sparse=False)` for old behavior or adjust code accordingly.","message":"API changes in 0.4.0: `Jacobian.compute()` now returns a dense numpy array by default; use `sparse=True` to get a scipy sparse matrix.","severity":"breaking","affected_versions":">=0.4.0"},{"fix":"Ensure Python 3.11 or newer is used.","message":"Requires Python >=3.11; installing on older Python versions will fail silently or produce import errors.","severity":"gotcha","affected_versions":"all"},{"fix":"Use the new `coloring` parameter instead of `seed_matrix`.","message":"The `seed_matrix` argument in Jacobian constructor is deprecated since 0.3.0 and will be removed in 0.5.0.","severity":"deprecated","affected_versions":">=0.3.0,<0.5.0"}],"env_vars":null,"search_vec":"'0.4.0':23 '3.11':26 'activ':27 'algorithm':7,37 'automat':32 'bind':3 'color':19 'comput':11 'current':21 'develop':28 'differenti':8,33,38 'effici':16 'graph':18 'hessian':15,36 'jacobian':13,35 'librari':9 'method':20 'month':30 'python':2,25 'releas':31 'requir':24 'spars':12,34 'sparsediffengin':5 'sparsediffpi':1 'use':17 'version':22","created_at":"2026-06-07T12:59:49.093386+00:00","updated_at":"2026-06-07T12:59:49.093386+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'Jacobian' from 'sparsediffpy' (/tmp/tmpvj90bbp5/venv/lib/python3.12/site-packages/sparsediffpy/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}