utils.rcclient.libs.template_processor.template_processor
Module Contents
Classes
Attributes
- utils.rcclient.libs.template_processor.template_processor.logger
- class utils.rcclient.libs.template_processor.template_processor.TemplateProcessor(pmw: utils.rcclient.libs.template_processor.papermill_wrapper.PapermillWrapper)
- CELL_WITH_IMPORTS = 0
- CELL_WITH_INPUTS_DECLERATION = 1
- INPUT_PROCESSING_FUNCS
- VARIABLES_STATEMENT = "template_id='$tid';nb_name='$nb_name';nb_stage='$nb_stage';root_host='$root_host';user_token='$us..."
- SETUP_AUTH_STATEMENT = 'from utils.rc.client.requests import Requests;from utils.rc.client.auth import...'
- REQUIRED_IMPORTS_STATEMENT = 'from utils.notebookhelpers.helpers import Helpers;from utils.dtos.variable import Metadata;from...'
- SAVE_ALL_VARS_STATEMENT = 'Helpers.save_all_vars()'
- SAVE_CONTEXT_STATEMENT = 'Helpers.save'
- classmethod process(template, notebook_in_path, root_host=None, user_token=None)
- make_sure_context_is_saved(nb_in_path)
- template_has_inputs()
- __remove_comments(source_code)
- process_template_inputs(context)
- classmethod __get_notebook_out_path()
- __get_nb_name(nb_path)