diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js
index f32a15e..61921c3 100644
--- a/IPython/frontend/html/notebook/static/js/notebook.js
+++ b/IPython/frontend/html/notebook/static/js/notebook.js
@@ -1197,6 +1197,11 @@ var IPython = (function (IPython) {
var new_cell = null;
for (i=0; i'):
+ elif line.startswith(u'# ') or line.startswith(u'# '):
cell = self.new_cell(state, cell_lines, **kwargs)
if cell is not None:
cells.append(cell)