`compute_crops.ipynb` fails because it uses deprecated ` crop_corner.interactive(adata_crop)`
オープン
@selmanozleyen がすでに取り組んでいます。
2025年9月4日 から。
評価
この issue はまだ評価されていません。
説明
(squidpy/docs/notebooks/examples/image/compute_crops.ipynb) fails because of trying to use a deprecated function.
Cell In[8], line 1
----> 1 crop_corner.interactive(adata_crop)
------------------
crop_corner.interactive(adata_crop)
------------------
----- stderr -----
/tmp/ipykernel_2900/2108321461.py:1: DeprecationWarning: Call to deprecated function interactive (The squidpy napari plugin is deprecated, please use https://github.com/scverse/napari-spatialdata).
crop_corner.interactive(adata_crop)
------------------
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[8], line 1
----> 1 crop_corner.interactive(adata_crop)
File ~/work/squidpy/squidpy/src/squidpy/_utils.py:313, in deprecated.<locals>.decorator.<locals>.new_func1(*args, **kwargs)
307 warnings.warn(
308 fmt1.format(name=func1.__name__, reason=reason),
309 category=DeprecationWarning,
310 stacklevel=2,
311 )
312 warnings.simplefilter("default", DeprecationWarning)
--> 313 return func1(*args, **kwargs)
File ~/work/squidpy/squidpy/src/squidpy/im/_container.py:1136, in ImageContainer.interactive(self, adata, spatial_key, library_key, library_id, cmap, palette, blending, symbol, key_added)
1079 @d.get_sections(base="_interactive", sections=["Parameters"])
1080 @d.dedent
1081 @deprecated(
(...) 1094 key_added: str = "shapes",
1095 ) -> Interactive: # type: ignore[type-var]
1096 """
1097 Launch :mod:`napari` viewer.
1098
(...) 1134 :meth:`squidpy.pl.Interactive.screenshot`.
1135 """
-> 1136 from squidpy.pl import Interactive # type: ignore[attr-defined]
1138 return Interactive( # type: ignore[no-any-return]
1139 img=self,
1140 adata=adata,
(...) 1148 symbol=symbol,
1149 ).show()
ImportError: cannot import name 'Interactive' from 'squidpy.pl' (/home/runner/work/squidpy/squidpy/src/squidpy/pl/__init__.py)
Failed to run /home/runner/work/squidpy/squidpy/docs/notebooks/examples/image/compute_crops.ipynb
- 主要言語
- Jupyter Notebook
- スター
- 35
- フォーク
- 26
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
scverse/squidpy-tutorials のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
scverse/squidpy-tutorials#129 · コメント 7 件 ·
-
Two improvements to the Xenium notebook再び着手できるかも @LLehner が 798 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
scverse/squidpy-tutorials#128 · コメント 4 件 · 担当者 1 名 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
scverse/squidpy-tutorials#123 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 55/100
scverse/squidpy-tutorials#99 · コメント 1 件 ·