nteract / papermill

πŸ“š Parameterize, execute, and analyze notebooks

Home Page:http://papermill.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove parameters from notebook output

1oglop1 opened this issue Β· comments

πŸš€ Feature

It would be nice to be able to remove parameters from the outputted notebook

Motivation

I have several parameters which need secrets e.g. API keys, passwords, etc
All my parameters come from static places like SecretsManager or Env or Config file

From what I understand I'd have to modify papermill.execute to make another transformation which removes parameters cell, correct?

similar to this

def prepare_notebook_metadata(nb, input_path, output_path, report_mode=False):