Skip to content

Commit

Permalink
Fix element style display
Browse files Browse the repository at this point in the history
Setting "unset" has some impacts on the way cells are rendered. While
setting it to "" should reset it to the default.
  • Loading branch information
martinRenou committed Jan 14, 2022
1 parent 495bcfe commit 852300d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions share/jupyter/voila/templates/lab/index.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ var voila_heartbeat = function() {
<script type="text/javascript">
(function() {
// remove the loading element
var el = document.getElementById("loading")
el.parentNode.removeChild(el)
var el = document.getElementById("loading");
el.parentNode.removeChild(el);
// show the cell output
el = document.getElementById("rendered_cells")
el.style.display = 'unset'
el = document.getElementById("rendered_cells");
el.style.display = '';
})();
</script>
{{ voila_setup(resources.base_url, resources.nbextensions) }}
Expand Down

0 comments on commit 852300d

Please sign in to comment.