Skip to content

render_shapes() got an unexpected keyword argument 'outline' #748

Description

@LucaMarconato

Report

Apparently the argument outline of render_shapes() got removed. I replacement the code that calls outline=True with outline_alpha=1.0.
To reproduce please run notebook_labels_shapes_interchangeability from spatialdata-notebooks.

Some notebooks started failing with this error:

- Cell In[5], line 1
INFO - ----> 1 sdata.pl.render_labels().pl.render_shapes("vectorized", outline=True, fill_alpha=0).pl.show()
INFO - 
INFO - File ~/embl/projects/basel/spatialdata-integration-testing/dependencies/spatialdata/src/spatialdata/_utils.py:278, in _deprecation_alias.<locals>.deprecation_decorator.<locals>.wrapper(*args, **kwargs)
INFO -     276     raise ValueError("version for deprecation must be specified")
INFO -     277 rename_kwargs(f.__name__, kwargs, alias_copy, class_name, library, version)
INFO - --> 278 return f(*args, **kwargs)
INFO - 
INFO - TypeError: PlotAccessor.render_shapes() got an unexpected keyword argument 'outline'

It looks like that an argument changed in render_shapes(). If this is the case, I suggest to keep the previous argument and throw a deprecation warning. The decorator from spatialdata._utils import _deprecation_alias (@ilia-kats, do we have something like this in scverse-misc?) can be used for this.

Note: the session_info output seems very short. If you can't reproduce please let me know and I'll dig more into this to create a MRE.

Versions

>>> import session_info2; session_info2.session_info(dependencies=True)
sphinxcontrib-htmlhelp	2.1.0
sphinxcontrib-applehelp	2.0.0
sphinxcontrib-devhelp	2.0.0
session-info2	0.4.1
setuptools	81.0.0
sphinxcontrib-bibtex	2.7.0
sphinxcontrib-serializinghtml	2.0.0
sphinxcontrib-jsmath	1.0.1
sphinxcontrib-qthelp	2.0.0
----	----
Python	3.13.0 | packaged by conda-forge | (main, Nov 27 2024, 19:18:26) [Clang 18.1.8 ]
OS	macOS-26.5.1-arm64-arm-64bit-Mach-O
Updated	2026-07-02 17:37

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions