 
     focus: () =>
         # TODO
-        console.log("ipython notebook focus: todo")
+        # console.log("ipython notebook focus: todo")
 
 
     show: () =>

        @doc.sync () =>
            @save_button.icon_spin(false)

    doc_sync: () =>
        console.log("doc sync")

        v1 = @doc.live()


                            if a.length == 0
                                setTimeout(f, 100)
                            else
                                a.attr('target', '_blank')
                                @frame.$('<style type=text/css></style>').html(".container{width:98%; margin-left: 0;}").appendTo(@frame.$("body"))
                                @_save_checkpoint = @frame.IPython.notebook.save_checkpoint
                                @frame.IPython.notebook.save_checkpoint = @save
                                #try
                                g = () =>
                                    @doc_sync()
