Commit 127ef71b authored by Boxiang Sun's avatar Boxiang Sun

Support iomd python code block format

parent 0dd4240a
......@@ -480,9 +480,17 @@
// Do nothing...
return;
}
// The block "%% code" is for keep the compatibility with the legacy pyodide notebook
// New notebook suggest to use "%% py" directly
if (cell._type === 'code') {
return executeCodeCell(cell._line_list, cell._option);
}
if (cell._type === 'js') {
return executeJSCell(cell._line_list);
}
if (cell._type === 'py') {
return executeCodeCell(cell._line_list, {language: 'py'});
}
if (cell._type === 'resource') {
return executeResourceCell(cell._line_list);
}
......@@ -495,9 +503,6 @@
if (cell._type === 'css') {
return executeCssCell(cell._line_list);
}
if (cell._type === 'code') {
return executeCodeCell(cell._line_list, cell._option);
}
return executeUnknownCellType(cell);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment