 
     _createResultBubble: (kernel, code, row) ->
         unless @watchSidebar?
-            @setWatchSidebar kernel.watchSidebar
+            @setWatchSidebar kernel
         else if @watchSidebar.element.contains document.activeElement
             @watchSidebar.run()
             return

            console.log 'toggleWatchSidebar: showing sidebar'
            @watchSidebar.show()

    setWatchSidebar: (sidebar) ->
        console.log 'setting watch sidebar'
        if @watchSidebar isnt sidebar and @watchSidebar?.visible
            @watchSidebar.hide()

            @kernelManager.setKernelMapping kernelSpec, grammar
            @kernelManager.startKernel kernelSpec, grammar, =>
                @setStatusBarElement()
                kernel = @kernelManager.getRunningKernelFor language
                @setWatchSidebar kernel


    getCurrentKernel: ->
