jupyter/jupyter-js-notebook

Code cells in `command` mode should be rendered

Closed this issue · 4 comments

CodeMirror measures on window resizes, so having as few around as possible is good.

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);

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.

👍

I agree. In the console, this is a no-brainer optimization.