Open sschmidhuber opened 1 year ago
I guess, while there's no solution to this, you can mess with the html with the package HypertextLiteral. After running the cell, you'll need to right click inspect and erase the style tag to have it back to edit it though.
begin
using HypertextLiteral
@htl("""
<script>
var cell = currentScript.closest("pluto-cell")
cell.style.display = "none"
</script>
""")
end
Hello @jevalentini , sure as a workaround this would be fine, but I was hoping this could become a default (in case there is no use case for having the white space, maybe I missing something) or get a flag, triggering this behavior, on PlutoSliderServer startup.
However, I understand that's probably not the most urgent issue / feature request 😉
Hey! Sorry for replying a year late!
Why don't you move the hidden cells to the bottom?
One problem I can see with hiding folded-and-empty cells is that some notebooks use empty cells on purpose, to create spacing between parts of the notebook.
Hello, yes that is a feasible workaround, which I applied myself as well. However, it makes changes and maintenance much harder, because you need to search the respective cells somewhere at the bottom of your notebook. Also for a non-technical reader of a notebook, it looks quite weird to have so much empty space at the bottom for no obvious reason.
I thought it could be an option to hide the input part of a folded cell, which would also be stored to the notebook. So when it is opened, it opens in "hide folded mode".
Creating vertical space in a notebook, while having "hide folded mode" active could be achieved by something like @htl"<br/><br/>"
.
Hello, first of all, thank you for this great package.
To use Pluto and PlutoUI beyond the scope of education it would be great to if there is an option not to display hidden cells at all, currently they are shown as white space. Here a random example outlining the issue:![grafik](https://github.com/JuliaPluto/PlutoSliderServer.jl/assets/8193673/ed57bae4-f93e-4a3d-94a5-c7c979b7830e)
The resulting reports / dashboards would look much better if hidden cells are not displayed at all.
BR Stefan