nteract/papermill

Support complex parameter inputs

Open

#696 建立於 2022年10月6日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)Python (402 fork)batch import
enhancementhelp wanted

倉庫指標

Star
 (5,381 star)
PR 合併指標
 (30 天內沒有已合併 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.

貢獻者指南