management/render_processing.py
def papermill(self, slug, params, rerun: bool = True):
        """
        execute the notebook with the parameters
        to the papermill storage folder
        """
        # need bit here that checks the parameters are right
        actual_path = self.raw_path()
        if rerun is False:
            print("Not papermilling, just copying current file")
            shutil.copy(self.raw_path(), self.papermill_path(slug))
        else:
            add_tag_based_on_content(actual_path, "parameters", "#default-params")
            pm.execute_notebook(
                actual_path, self.papermill_path(slug), parameters=params
            )

        execute the notebook with the parameters
        to the papermill storage folder
        
execute the notebook with the parameters
to the papermill storage folder
execute the notebook with the parameters to the papermill storage folder
def papermill(self, slug, params, rerun: bool = True):
        actual_path = self.raw_path()
        if rerun is False:
            print("Not papermilling, just copying current file")
            shutil.copy(self.raw_path(), self.papermill_path(slug))
        else:
            add_tag_based_on_content(actual_path, "parameters", "#default-params")
            pm.execute_notebook(
                actual_path, self.papermill_path(slug), parameters=params
            )
def papermill ( self , slug , params , rerun : bool = True ) : actual_path = self . raw_path ( ) if rerun is False : print ( "Not papermilling, just copying current file" ) shutil . copy ( self . raw_path ( ) , self . papermill_path ( slug ) ) else : add_tag_based_on_content ( actual_path , "parameters" , "#default-params" ) pm . execute_notebook ( actual_path , self . papermill_path ( slug ) , parameters = params )
execute the notebook with the parameters
to the papermill storage folder
execute the notebook with the parameters to the papermill storage folder
"""
        execute the notebook with the parameters
        to the papermill storage folder
        """ # need bit here that checks the parameters are right
self
slug
params
rerun
bool