PlutoSliderServer on Github-pages website

I am trying to get the sliders working on my pluto notebook on my github-pages website (smgroves.github.io). I was looking at this: Is it possible to use PlutoSliderServer to host github pages with sliders that work? · JuliaPluto/PlutoSliderServer.jl · Discussion #22 · GitHub which seems to imply that something was in the works for getting working sliders on github pages like the computational thinking mit website, but I haven’t found anything that works. So far, I’ve tried running export_notebook from PlutoSliderServer and using that as a webpage (sliders don’t work still). I also tried following along with the tutorial here GitHub - JuliaPluto/static-export-template: A template to automatically convert Pluto notebooks to an HTML website with GitHub Pages. Demo page: , which actually seems to work, but it rewrites my homepage to be an index. I don’t have an index.html in my github repo because of the jekyll template I’m using (that basically uses my about page as the homepage). I couldn’t figure out how to make the htmls for the julia notebooks and NOT overwrite my homepage with an index-- I tried looking at a specific subfolder and it is able to find the correct notebooks (in a folder called julia) but it still overwrites my homepage. My github pages repo is public here: GitHub - smgroves/smgroves.github.io: My professional website . Any specific advice on how I could get pluto notebooks working with sliders? Thanks!

Hey @Sarah_Groves !

Sorry I missed your post before! Let me know if I can still help.

I looked at your website, and it looks like you figured out the index issue, and you have a couple of interactive notebooks! Awesome!

I would also welcome feedback on how to make the documentation of PlutoSliderServer easier to understand. Was it easy to set up the server? Is there any information that was missing, but it would have really helped to see?

Hi! I was wondering if there are any updates regarding this. I am interested in hosting some interactive notebooks for my students using sliders, and GitHub pages are the only free solution that I can think of.
I did not find any other information/updates in other places, but I guess that there’s a way of doing it now?

Thanks a lot!

2 Likes

Hi @Juan_Mac_Donagh !

You can use GitHub pages to create a website out of .jl notebooks on github, using the static-export-template. This is free, but not interactive. You can read more about this here: 📕 Notebooks online – Pluto.jl notebooks as web pages — Pluto.jl

If you want direct interactivity on your website (visitors can use sliders and buttons), then you need to run PlutoSliderServer. This is usually on a Linux server that you rent, or on university infrastructure. Check out: 💫 PlutoSliderServer.jl — Pluto.jl

Currently, it is not possible to have an notebook online be directly interactive for free. This might be possible to a limited extent in the future, see Precompute all possible slider states by fonsp · Pull Request #29 · JuliaPluto/PlutoSliderServer.jl · GitHub and In the Pluto-verse ...