We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86e5d1b commit b1ea326Copy full SHA for b1ea326
js/com/com_interface.js
@@ -29,8 +29,12 @@ define([
29
var targetCell = Jupyter.notebook.insert_cell_below(type, selectedIndex);
30
31
// Add signature
32
- if (type == 'code' && sigNum >= 0) {
33
- command = com_util.formatString('# VisualPython [{0}]\n', sigNum) + command
+ if (type == 'code') {
+ if (sigNum >= 0) {
34
+ command = com_util.formatString('# VisualPython [{0}]\n', sigNum) + command;
35
+ } else {
36
+ command = '# VisualPython\n' + command;
37
+ }
38
}
39
targetCell.set_text(command);
40
Jupyter.notebook.select_next();
0 commit comments