Created
July 22, 2016 20:11
-
-
Save doowon/da796654beb2e3154760b8bd9d02d172 to your computer and use it in GitHub Desktop.
Never allow markdown cells to be editable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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