/**
* Updates all cells in the Pluto notebook.
* @returns {Promise<void>}
*/
export async function updateAllCells() {
const cells = document.querySelectorAll("pluto-cell");
await cells[0]._internal_pluto_actions.set_and_run_multiple(Array.from(cells).map(cell => cell.id));
window.location.reload();
}
/**
* Updates a specific cell in the Pluto notebook by its ID.
* @param {string} cellID -
* @returns {Promise<void>}
*/
async function updateCell(cellID) {
const cell = document.getElementById(cellID);
await cell._internal_pluto_actions.set_and_run_multiple([cellID]);
}
/**
* Hides the Pluto navigation bar by setting its parent element's minimum height to zero.
* @returns {void}
*/
export function resizePlutoNav() {
let element = document.getElementById("pluto-nav").parentElement.parentElement;
element.style.minHeight = "0";
}