                     # DOM gets extra info about @read_only status of file from jupyter notebook server.
                     @read_only = true
                 cb()
-        @dom = new JupyterWrapper(@notebook, @server_url, @filename, @read_only, @project_id, done)
+        @dom = new JupyterWrapper(@notebook, @server_url, @filename, @read_only, @project_id, @_init_dom_timeout, done)
 
     init_buttons: () =>
         # info button

        # wait until connected -- iT is ***critical*** to wait until
        # the kernel is connected before doing anything else!
        start = new Date()
        max_time_ms = 10*1000 # try for up to this long
        f = () =>
            @frame ?= window.frames[@iframe_uuid]
            if not @frame

                return
            innerHTML = @frame?.document?.body?.innerHTML

            if new Date() - start >= max_time_ms
                @state = 'error'
                @error = 'timeout loading'
                console.log 'Jupyter -- timeout loading'
                cb(@error)
            else
                # NOTE: we can't use '@nb.events.one "notebook_loaded.Notebook"', since we can't attach
