Raw HTML export #1607
-
Now that Pluto has built in package management, it is almost too good. So, my compliments on that 👍 What is still a bit of a problem for me is that I couldn't find a way yet to cleanly get the Pluto code and output into my blog. So, I've created a package: PlutoHTML.jl. This package provides one method, namely "notebook2html". This method takes a notebook path or a
@fonsp and other developers, is this functionality something that you would like to move into the Pluto.jl codebase, or should it stay a stand-alone package? It's not too much code. EDIT: Example post created via PlutoHTML here: https://huijzer.xyz/posts/frequentist-bayesian-coin-flipping/. A link to the notebook is at the bottom of the page. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hoi Rik! That looks really nice! Happy to see that you played around with Pluto's internals. Right now, I am in a phase where I am super excited about everything that we can do with the existing built-in HTML export, which includes the full Pluto frontend. This lets us open a binder in the background, run a plutosliderserver and more, and it means that the export is truly WYSIWYG. On the other hand, there are some disadvantages to this technique:
Your package solves these three issues! Eventually, I think we can solve the first two without changing the format, e.g. using SSR on our preact app, but this package is a good solution for all three right now. About the name: PlutoHTML could lead to confusion, since Pluto already has an HTML export system built-in ( The blog article looks really nice! I will try it out soon! |
Beta Was this translation helpful? Give feedback.
-
Agreed. The HTML export definitely has it's problems too. Thank you for also seeing the benefits.
Great suggestion. Done ✔️ Thank you for your feedback and being open about this package. Feel free to let me know if you have comments or suggestions at a later point. For now, I'll keep working on this package and maybe even register it at some point. 👍 |
Beta Was this translation helpful? Give feedback.
-
@rikhuijzer looks like it doesn't hide the hidden Pluto notebook cells. Is it possible to hide cells that are hidden in Pluto.jl? |
Beta Was this translation helpful? Give feedback.
Hoi Rik!
That looks really nice! Happy to see that you played around with Pluto's internals.
Right now, I am in a phase where I am super excited about everything that we can do with the existing built-in HTML export, which includes the full Pluto frontend. This lets us open a binder in the background, run a plutosliderserver and more, and it means that the export is truly WYSIWYG.
On the other hand, there are some disadvantages to this technique: