From fcc5b92b217d737a975ec6629d4a9a5ffcf4e868 Mon Sep 17 00:00:00 2001 From: Juergen Hasch Date: Sat, 24 Jan 2015 11:41:07 +0100 Subject: [PATCH] Only execute python when notebook is trusted --- usability/python-markdown/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usability/python-markdown/main.js b/usability/python-markdown/main.js index b29c1ec..be8340b 100644 --- a/usability/python-markdown/main.js +++ b/usability/python-markdown/main.js @@ -34,8 +34,7 @@ define([ var execute_python = function(cell,text) { /* never execute code in untrusted notebooks */ if (IPython.notebook.trusted === false ) { - console.log("Trust check:", IPython.notebook.trusted); - // return text + return text } /* always clear stored variables if notebook is dirty */ if (IPython.notebook.dirty === true ) delete cell.metadata.variables;