tskit-dev / tskit-site

tskit website
Other
0 stars 8 forks source link

JupyterLite deployment #84

Open jeromekelleher opened 2 years ago

jeromekelleher commented 2 years ago

It would be helpful for a lot of reasons if we could have our own JupyterLite deployment on tskit-dev. That way we could host live notebooks for educational content.

We have most of the components needed already in pyodide (although waiting on a release), so we could try this out initially with some simulation/tskit fundamentals notebooks. If it works, we can then look at bringing things like tsinfer in.

Here are the docs for JupyterLite deployment

Any thoughts @benjeffery, @hyanwong?

jeromekelleher commented 2 years ago

It would be extra exciting if we could give these notebooks could inherit a light tskit-dev theme

hyanwong commented 2 years ago

I think this would be really great - the perfect resource for learning tskit. It looks from the docs like you can install your own packages onto the system: is that right? Presumably we expect newer released of pyodide to be able to load e.g. msprime? My workbooks also use jupyterquiz, though, so it would be nice to include that.

Would https://github.com/hyanwong/genealogy_workshop/blob/main/Workshop1.ipynb be a good test case to use? Only needs tskit and msprime, I think. I'm not sure how we load the bespoke "model" that does the workbook setup, though.

benjeffery commented 2 years ago

Yep, def on the roadmap after we get the basics in.

hyanwong commented 2 years ago

Subtext is also that the JupyterHub server went down in the workshop just now. It would be much less hassle and more reliable / portable if in the future we could use JupyterLite for workshops too.