Public
Edited
Nov 16, 2023
Fork of Vit-S
2 forks
1 star
Insert cell
Insert cell
<div id="root" style="width: 100%; height: 600px">
Loading...
</div>
Insert cell
Insert cell
{
function MyApp() {
return React.createElement(
vitessce.Vitessce,
{
height: 600,
theme: "light",
config: config,
uid: "my-app",
},
);
}
const container = document.getElementById('root');
const root = createRoot(container);
root.render(React.createElement(MyApp));
}
Insert cell
createRoot = (await importWithMap('react-dom/client', importMap)).createRoot;
Insert cell
React = await importWithMap("react", importMap);
Insert cell
vitessce = await importWithMap('vitessce', importMap);
Insert cell
importMap = ({
imports: {
"react": "https://esm.sh/react@18.2.0",
"react-dom": "https://esm.sh/react-dom@18.2.0",
"react-dom/client": "https://esm.sh/react-dom@18.2.0/client",
"vitessce": "https://unpkg.com/vitessce@3.3.0"
},
});
Insert cell
importWithMap = (await import('https://unpkg.com/dynamic-importmap@0.1.0')).importWithMap
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more