Skip to content

Instantly share code, notes, and snippets.

@jamesadamsmv
jamesadamsmv / hide_single_cell.py
Created April 12, 2023 08:34 — forked from Zsailer/hide_single_cell.py
Hide a single cell in Jupyter notebook
from IPython.display import HTML
from IPython.display import display
# Taken from https://stackoverflow.com/questions/31517194/how-to-hide-one-specific-cell-input-or-output-in-ipython-notebook
tag = HTML('''<script>
code_show=true;
function code_toggle() {
if (code_show){
$('div.cell.code_cell.rendered.selected div.input').hide();
} else {