{"id":46418,"library":"spatialdata-plot","title":"spatialdata-plot","description":"Static plotting for spatial data, part of scverse. Current version 0.4.0, requires Python >=3.11. Release cadence is irregular.","status":"active","version":"0.4.0","language":"python","source_language":"en","source_url":"https://github.com/scverse/spatialdata-plot","tags":["spatial","single-cell","plotting","scverse"],"install":[{"cmd":"pip install spatialdata-plot","lang":"bash","label":"Latest release"}],"dependencies":[{"reason":"Core data structure","package":"spatialdata","optional":false},{"reason":"Rendering engine","package":"matplotlib","optional":false}],"imports":[{"note":"SpatialData is the class, sd is commonly used as a module alias","wrong":"import spatialdata as sd","symbol":"SpatialData","correct":"from spatialdata import SpatialData"}],"quickstart":{"code":"from spatialdata import SpatialData\nimport spatialdata_plot\n# Create a SpatialData object with sample data\nsdata = SpatialData.from_squidpy(\"adata\", \"dummy\")\nsdata.pl.render()","lang":"python","description":"Basic rendering of a SpatialData object using the .pl accessor."},"warnings":[{"fix":"Use Python >=3.11.","message":"spatialdata-plot 0.4.0 drops support for Python <3.11.","severity":"breaking","affected_versions":"0.4.0+"},{"fix":"Replace sdata.plot() with sdata.pl.render()","message":"The plot() function on sdata is deprecated; use sdata.pl.render() instead.","severity":"deprecated","affected_versions":"0.3.x-0.4.0"},{"fix":"Always import spatialdata_plot after spatialdata before using .pl.","message":"spatialdata-plot must be imported before calling .pl methods; otherwise AttributeError occurs.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.4.0':14 '3.11':17 'cadenc':19 'cell':25 'current':12 'data':8 'irregular':21 'part':9 'plot':3,5,26 'python':16 'releas':18 'requir':15 'scvers':11,27 'singl':24 'single-cel':23 'spatial':7,22 'spatialdata':2 'spatialdata-plot':1 'static':4 'version':13","created_at":"2026-06-07T12:59:49.488952+00:00","updated_at":"2026-06-07T12:59:49.488952+00:00","problems":[{"fix":"Run 'pip install spatialdata-plot' and add 'import spatialdata_plot' to your script.","cause":"spatialdata-plot not imported or installed.","error":"AttributeError: 'SpatialData' object has no attribute 'pl'"},{"fix":"Upgrade spatialdata: pip install --upgrade spatialdata","cause":"Outdated spatialdata library (<0.4.0) that doesn't export SpatialData.","error":"ImportError: cannot import name 'SpatialData' from 'spatialdata'"}],"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":"https://github.com/scverse/spatialdata-plot.git","github":"https://github.com/scverse/spatialdata-plot.git","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":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}