                 delete @markerBubbleMap[marker.id]
 
     run: ->
-        editor = atom.workspace.getActiveEditor()
+        editor = atom.workspace.getActiveTextEditor()
         language = editor.getGrammar().name.toLowerCase()
 
         if KernelManager.languageHasKernel(language)


        @subscriptions.add atom.workspace.observeActivePaneItem(@updateCurrentEditor.bind(this))

        @editor = atom.workspace.getActiveEditor()

    deactivate: ->
        @subscriptions.dispose()

            selectedRange = @editor.getSelectedBufferRange()
            return [selectedText, selectedRange.end.row]

        cursor = @editor.getLastCursor()

        row = cursor.marker.bufferMarker.range.start.row
        console.log "row:", row
