galaxy
galaxy copied to clipboard
Render previews of notebooks

Heavily inspired by https://github.com/galaxyproject/SARS-CoV-2/blob/03a07fd6f519e91806084847eec1b9b159095b8d/.vuepress/components/JupyterNotebook.vue, which we could probably mount directly instead of doing it like this. I think we'd probably also want to defer loading of the additional dependencies.
If we can figure that out we could also replace the server-side pysam use with https://github.com/GMOD/bam-js (and many more things).
On Node.js, notebook.js runs all "text/html"-type outputs through DOMPurify. The browser-based version, however, does not ship with this library; to enable the default behavior, you must
I'm sure it is on your roadmap - just want to make sure it is sanitized before merged.
We're hacking around this with import "!!script-loader!notebookjs";
right now since I couldn't figure out how to do regular imports there, but I think the upside is that the sanitizer should be loaded. Will definitely check though.
Awesome - amazing and super cool then! What a great approach.
I'm trying to dig up commentary, but when I proposed packaging https://github.com/galaxyproject/SARS-CoV-2/pull/87 for Galaxy, there was other pushback.