Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alahenell opened this issue Jan 3, 2024 · 1 comment
Open

Comments

@alahenell
Copy link

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.

@alahenell
Copy link
Author

I also reproduce the code in another two environment kernels, the results are the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant