 {HTML, Markdown} = require('../r_misc')
 
 {fromJS} = require('immutable')
+
+{CodeMirrorStatic} = require('../jupyter/codemirror-static')
 
 exports.CellOutput = rclass
     displayName: "SageCell-Output"

        <div key={key}>
            raw input render not yet implemented
        </div>


    render_output_mesg: (elts, mesg) ->
        for type, value of mesg

                return <a key={key} href={target} target='_blank'>{text}</a>

    render_code: (value, key) ->
        options = fromJS({mode:{name:value.mode}})
        <CodeMirrorStatic
            key     = {key}
            value   = {value.source ? ''}
            options = {options}
            style   = {background:'white', padding:'10px'}
        />

    render_tex: (value, key) ->
        <div key={key}>
