Skip to content

Failing with: TypeError: Failed to fetch #54

@djriffle

Description

@djriffle

My setup code:

import scanpy as sc
import easy_vitessce as ev

adata = sc.read_h5ad("path_to_my_file.h5ad")

ev.configure_plots(
    enable_plots=["embedding", "violin", "spatialdata-plot", "umap"]
)

AnnData preview:

AnnData object with n_obs × n_vars = 339751 × 458
    obs: 'dataset', ...
    var: 'Gene', 'Ensembl.ID', 'Probesets', 'category', 'highly_variable'
    uns: 'log1p', 'neighbors'
    obsm: 'X_pca', 'X_spatial', 'X_umap'
    obsp: 'connectivities', 'distances'

Problematic code:

sc.pl.pca(adata, color=["dataset"])

When I run this, the PCA plot fails with:

TypeError: Failed to fetch

There’s no additional traceback or details.
The strange part is:

  • The same error happens on a different h5ad file.
  • Using sc.pl.pca on its own (outside the Vitessce configuration) works fine.

Has anyone encountered this or knows why sc.pl.pca() would trigger a frontend Failed to fetch error after calling ev.configure_plots?

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