Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Never allow markdown cells to be editable.
// When a cell is clicked and the cell's mode is changed to the edit mode
// Then, this below event is called.
$([IPython.events]).on("edit_mode.Cell", function () {
if (IPython.notebook.get_selected_cell().cell_type == "markdown") {
IPython.notebook.execute_selected_cells();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment