Skip to content

Instantly share code, notes, and snippets.

@oeway
Created November 19, 2021 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oeway/575de5a666c31f749848af0fcbc59bc2 to your computer and use it in GitHub Desktop.
Save oeway/575de5a666c31f749848af0fcbc59bc2 to your computer and use it in GitHub Desktop.
<docs lang="markdown">
# VizarrDemo
A demo plugin which uses Vizarr to visualize zarr images
See https://github.com/hms-dbmi/vizarr for details.
</docs>
<config lang="json">
{
"name": "VizarrDemo",
"type": "web-worker",
"tags": [],
"ui": "",
"version": "0.2.0",
"cover": "",
"description": "simple vizarr demo",
"icon": "extension",
"inputs": null,
"outputs": null,
"api_version": "0.1.8",
"env": "",
"permissions": [],
"requirements": [],
"dependencies": []
}
</config>
<script lang="javascript">
class ImJoyPlugin {
async setup() {
api.log('initialized')
}
async run(ctx) {
const viewer = await api.createWindow({ src: 'https://hms-dbmi.github.io/vizarr' });
await viewer.add_image({ source: 'https://s3.embassy.ebi.ac.uk/idr/zarr/v0.1/6001240.zarr' });
}
}
api.export(new ImJoyPlugin())
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment