diff --git a/IPython/html/static/notebook/js/codecell.js b/IPython/html/static/notebook/js/codecell.js index 73228e8..37df9c3 100644 --- a/IPython/html/static/notebook/js/codecell.js +++ b/IPython/html/static/notebook/js/codecell.js @@ -410,7 +410,7 @@ define([ CodeCell.input_prompt_classical = function (prompt_value, lines_number) { var ns; - if (prompt_value === undefined) { + if (prompt_value === undefined || prompt_value === null) { ns = " "; } else { ns = encodeURIComponent(prompt_value);