Compare commits

..

1 Commits

Author SHA1 Message Date
af9f00d907 cleanup 2025-09-14 18:39:40 +02:00

View File

@@ -57,23 +57,6 @@
}
// #let code_cell(notebook, cell_tag) = {
// // Extract the content of a cell and display it as a code block
// let cells = notebook.cells
// let matching_cell = cells.find(x => cell_matcher(x, cell_tag))
// let cell_content = matching_cell.source
// let single_line = cell_content.fold("", (acc, x) => acc + x)
// text(
// raw(
// single_line,
// lang: "python",
// block: true
// ),
// size: code_font_scale
// )
// }
#let image_cell(notebook, ..identifiers) = {
let matching_cell = get_cell(notebook, ..identifiers)
@@ -104,27 +87,6 @@
}
// #let image_cell(notebook, cell_tag) = {
// // Extract the output (image) of a cell and display it as an image
// let cells = notebook.cells
// let matching_cell = cells.find(x => cell_matcher(x, cell_tag))
// let outputs = matching_cell.outputs
// for output in outputs {
// let image_data = output.at("data", default: (:)).at("image/png", default: none)
// if image_data != none {
// align(
// center,
// image.decode(
// base64.decode(image_data),
// // height: 70% // the height should be set by the caller. This gives the flexibility to adjust the height of the image
// )
// )
// }
// }
// }
#let code_reference_cell(notebook, ..identifiers) = {
// Extract the output (text) of a cell and display it as a code block
// This is useful for showing the code of imported functions
@@ -145,28 +107,3 @@
}
}
}
// #let code_reference_cell(notebook, cell_tag) = {
// // Extract the output (text) of a cell and display it as a code block
// // This is useful for showing the code of imported functions
// let cells = notebook.cells
// let matching_cell = cells.find(x => cell_matcher(x, cell_tag))
// let outputs = matching_cell.outputs
// for output in outputs {
// let cell_output = output.at("text", default: (:))
// if cell_output != none {
// let single_line = cell_output.join("")
// text(
// raw(
// single_line,
// lang: "python",
// block: true
// ),
// size: code_font_scale
// )
// }
// }
// }