     set_error: (err) =>
         @setState
             error : err
+
+    set_cell_input: (id, value) =>
+        # TODO: insanely stupid/slow -- just for proof of concept
+        @syncdb.set
+            type  : 'cell'
+            id    : id
+            input : value
 
     _syncdb_change: =>
         # TODO: this is not efficient!

###
The React components
###

JupyterEditor = rclass ({name}) ->
    propTypes :

            <div style={color:'#303F9F', minWidth: '14ex', fontFamily: 'monospace', textAlign:'right', padding:'.4em'}>
                In [{cell.get('number') ? '*'}]:
            </div>
            <InputEditor
                value = {cell.get('input')}
                style = {width:'100%', backgroundColor: '#f7f7f7', fontFamily: 'monospace'}
                onChange = {(value) => @props.actions.set_cell_input(cell.get('id'), value)}
            />
        </div>

    render_output_number: (n) ->
