Skip to content

Option to raise exception when unknown parameter passed. #818

Open
@ashesh-0

Description

@ashesh-0

🚀 Feature

Motivation

I'm using papermill to run multiple notebooks. I have a generic .py script with which I pass in the notebook path and the parameter changes which I wish to make.
However, in doing so, sometimes, I inadvertently pass parameters not meant for the notebook. I think it would be nice if there was an option to raise an exception if an unknown parameter was passed.
I did not spend too much time looking into the code, but I think one just needs to change

logger.warning(f"Passed unknown parameter: {p}")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions