Code cells in `command` mode should be rendered
Closed this issue · 4 comments
blink1073 commented
CodeMirror measures on window resizes, so having as few around as possible is good.
blink1073 commented
See https://codemirror.net/demo/runmode.html for an example - generates innerHTML
on a node:
import "codemirror/addon/runmode/runmode"
CodeMirror.runMode(myText, myMode, myNode);
blink1073 commented
This should not be done automatically by the code cell, but available as render/unrender
methods that can be used by a single-user notebook or a console, for example.
afshin commented
👍
I agree. In the console, this is a no-brainer optimization.
blink1073 commented
Moved to jupyterlab/jupyterlab#15