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

Ability to use comparative views + pageMode in a Jupyter notebook #351

Open
keller-mark opened this issue Jul 10, 2024 · 0 comments · May be fixed by #355
Open

Ability to use comparative views + pageMode in a Jupyter notebook #351

keller-mark opened this issue Jul 10, 2024 · 0 comments · May be fixed by #355
Labels
cell-atlas feature New feature or request

Comments

@keller-mark
Copy link
Member

keller-mark commented Jul 10, 2024

It would be useful to demonstrate the comparative visualization features, and the data processing steps that are required, if we can use them within a Jupyter notebook context. A follow-up step would then be to show them in HuBMAP workspaces

Also, need to support passing a view uid via vc.add_view() analogous to the JS:

const biomarkerSelect = vc.addView(dataset, 'biomarkerSelect', { uid: 'biomarker-select' });
PAGE_ESM = transform("""

function ensureComponent(component) {
  if(!component) {
    return () => null;
  }
  return component;
}

function createPage(utilsForPages) {
  const {
    usePageModeView,
  } = utilsForPages;
  function PageComponent(props) {
    const BiomarkerSelect = ensureComponent(usePageModeView('biomarker-select'));

    return (
      <div><BioMarkerSelect</div>
    );
  }
}
export default { createPage };
""")
vc.widget(page_mode=True, page_esm=PAGE_ESM)

TODO:

  • document the JS apis
@keller-mark keller-mark added feature New feature or request cell-atlas labels Jul 10, 2024
@keller-mark keller-mark linked a pull request Aug 2, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cell-atlas feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant