Skip to content

Crashed after performing a slicing operation on an AnnData variable #294

Open
@alahenell

Description

@alahenell

Describe the bug
After performing a slicing operation on an AnnData variable(single cell data, h5ad file read using Scanpy), the program crashed. Neither new variable can be detected, nor operations on existing variables can be recognized: the 'type-size-shape-content' of the displayed dataframe or int number do not change. However, if I view the contents of the dataframe using "View contents," I can see the changed data.

To Reproduce
Steps to reproduce the behavior:

import scanpy as sc
import pandas as pd

num = 6  # OK
df = pd.DataFrame({'A':[1,2,3], 'B':[4,5,6]})  # OK
adata = sc.datasets.blobs()  # This is a small built-in dataset for reproduce. OK

adata1 = adata[0:10, ]  # Crash happen, doesn't appear in variable inspector

num = 7  # doesn't change in 'type size shape content'
df = df['A']  # doesn't change in 'type size shape content', but change in 'view contents'

Screenshots
before crash:
屏幕截图 2024-01-03 205231
屏幕截图 2024-01-03 205318

after crash:
屏幕截图 2024-01-03 205237
屏幕截图 2024-01-03 205248

Your Environment(please complete the following information):

  • OS : linux
  • Browser : Edge
  • Version of this extension you are using :
  • jupyterlab 4.0.9
  • lckr_jupyterlab_variableinspector 3.1.0

Additional context
Looking forward to your reply. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions