environment/lib/python2.7/site-packages/IPython/frontend/html/notebook/notebookmanager.py
def copy_notebook(self, notebook_id):
        """Copy an existing notebook and return its notebook_id."""
        last_mod, nb = self.get_notebook_object(notebook_id)
        name = nb.metadata.name + '-Copy'
        path, name = self.increment_filename(name)
        nb.metadata.name = name
        notebook_id = self.new_notebook_id(name)
        self.save_notebook_object(notebook_id, nb)
        return notebook_id
def copy_notebook(self, notebook_id):
        last_mod, nb = self.get_notebook_object(notebook_id)
        name = nb.metadata.name + '-Copy'
        path, name = self.increment_filename(name)
        nb.metadata.name = name
        notebook_id = self.new_notebook_id(name)
        self.save_notebook_object(notebook_id, nb)
        return notebook_id
def copy_notebook ( self , notebook_id ) : last_mod , nb = self . get_notebook_object ( notebook_id ) name = nb . metadata . name + '-Copy' path , name = self . increment_filename ( name ) nb . metadata . name = name notebook_id = self . new_notebook_id ( name ) self . save_notebook_object ( notebook_id , nb ) return notebook_id
Copy an existing notebook and return its notebook_id.
Copy an existing notebook and return its notebook_id .