 
                 @status("Loading IPython notebook...")
 
-                @iframe = $("<iframe name=#{@iframe_uuid} id=#{@iframe_uuid}>").css('opacity','.01').attr('src', @server.url + @notebook_id)
+                @iframe = $("<iframe name=#{@iframe_uuid} id=#{@iframe_uuid}>").css('opacity','.01').attr('src', "#{@server.url}notebooks/#{@filename}")
                 @notebook.html('').append(@iframe)
                 @show()
 

                    catch e
                        cb?(true)

    notebooks: (cb) =>  # cb(err, [{kernel_id:?, name:?, notebook_id:?}, ...]  # kernel_id is null if not running
        get_with_retry
            url : @url + 'notebooks'
            cb  : (err, data) =>
                if not err
                    cb(false, misc.from_json(data))
                else
                    cb(err)

    stop_server: (cb) =>
        if not @pid?
            cb?(); return

        t = "<h3>The IPython Notebook</h3>"
        t += "<h4>Enhanced with SageMathCloud Sync</h4>"
        t += "You are editing this document using the IPython Notebook enhanced with realtime synchronization."
        t += "<h4>Sage mode by pasting this into a cell</h4>"
        t += "<pre>%load_ext sage</pre>"
        t += "<h4>Connect to this IPython kernel in a terminal</h4>"
        t += "<pre>ipython console --existing #{@kernel_id}</pre>"
        t += "<h4>Pure IPython notebooks</h4>"
        t += "You can also directly use an <a target='_blank' href='#{@server.url}'>unmodified version of the IPython Notebook server</a> (this link works for all project collaborators).  "
        t += "<br><br>To start your own unmodified IPython Notebook server that is securely accessible to collaborators, type in a terminal <br><br><pre>ipython-notebook run</pre>"
        t += "<h4>Known Issues</h4>"
        t += "If two people edit the same <i>cell</i> simultaneously, the cursor will jump to the start of the cell."
        bootbox.alert(t)
        return false

