nteract/papermill

Support complex parameter inputs

开放

#696 创建于 2022年10月6日

 (2 条评论) (0 个反应) (0 位负责人)Python (402 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (5,381 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

🚀 Feature

The current method for injecting parameters into the Jupyter Notebooks requires that the input values be a valid JSON type else they are coerced into their object.__repr__() representation. papermill should support more complex data types via another protocol (pickle maybe?) for a better user experience

Motivation

When calling papermill from the command line, JSON types are adequate because it is difficult for the user to represent anything more complex than that. However when calling papermill programmatically, user defined types and classes are much easier to create and are not supported. Obviously there are workarounds such as writing to a file and reading the values back in on the other end, but it would be better if papermill could support something like this natively.

贡献者指南