Skip to content

Conversation

@hoxbro
Copy link
Contributor

@hoxbro hoxbro commented Sep 18, 2025

seeing this warning in the console:

image

Seems to be because panel-material-ui block the width calculation.

# Cell 1
import holoviews as hv
import panel as pn
import hv_anndata
from hv_anndata import Dotmap, ManifoldMap
import scanpy as sc

hv_anndata.register()
hv.extension("bokeh")
pn.extension('jsoneditor')

adata = sc.datasets.pbmc68k_reduced()

immuno_mgenes = {
    'T-cell Core': ['CD247', 'CD3D', 'CD3E'],  # Pan T-cell markers
    'Cytotoxic': ["GNLY", "NKG7", "PRF1", "GZMB"],  # Cytotoxic function
    'Myeloid': ["FCER1G", "TYROBP", "KLRG1", "FCGR3A"]  # Myeloid lineage
}

# cell 2
immuno_dm = Dotmap(
    adata=adata,
    marker_genes=immuno_mgenes,
    groupby='bulk_labels'
)

w, p = pn.panel(immuno_dm)
w_type = type(w)
w_values = w.param.values()
#w[:][0].max_width = 300
#w[:][1] = pn.Column(w[:][1].__panel__(), max_width=300)
w_new = w_type(**dict(w_values, objects=w[:]))
pn.Row(w_new, p)

# cell 3 == cell 2

# cell 4
Works of this are also available.
image

@github-actions
Copy link
Contributor

Your changes were successfully integrated in the dev site, make sure to review the pages of the projects you touched before merging this PR.

@github-actions
Copy link
Contributor

Your changes were successfully integrated in the dev site, make sure to review the pages of the projects you touched before merging this PR.

@hoxbro hoxbro changed the title enh: Improve gene-profiling fix: No showing plots with gene-profiling Sep 18, 2025
@hoxbro hoxbro marked this pull request as draft September 18, 2025 13:33
@github-actions
Copy link
Contributor

Your changes were successfully integrated in the dev site, make sure to review the pages of the projects you touched before merging this PR.

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

Successfully merging this pull request may close these issues.

3 participants