             'hydrogen:remove-watch': => @watchSidebar.removeWatch()
             'hydrogen:update-kernels': -> KernelManager.updateKernels()
             'hydrogen:inspect': => @inspect()
+            'hydrogen:close-inspector': => @closeInspector()
 
         @subscriptions.add atom.commands.add 'atom-workspace',
             'hydrogen:clear-results': => @clearResultBubbles()
+            'hydrogen:toggle-inspector-size': => @toggleInspectorSize()
 
         @subscriptions.add(atom.workspace.observeActivePaneItem(
             @updateCurrentEditor.bind(this)))


        [code, cursor_pos] = @getCodeToInspect()

        KernelManager.inspect language, code, cursor_pos, (result) ->
            console.log 'inspect result:', result
            found = result['found']
            if found is true

            code = @getRow(row)
            cursor_pos = cursor.getBufferColumn()
        return [code, cursor_pos]

    toggleInspectorSize: ->
        if @inspector?
            @inspector.toggle()

    closeInspector: ->
        if @inspector?
            @inspector.close()
