nteract/papermill — dự án tự động hoá — đang có 6.5k sao GitHub trong nhóm Automation. 📚 Parameterize, execute, and analyze notebooks
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
papermill is a tool for parameterizing, executing, and analyzing
Jupyter Notebooks.
Papermill lets you:
parameterize notebooks
execute notebooks
This opens up new opportunities for how notebooks can be used. For
example:
Perhaps you have a financial report that you wish to run with
different values on the first or last day of a month or at the
beginning or end of the year, using parameters makes this task
easier.
Do you want to run a notebook and depending on its results, choose a
particular notebook to run next? You can now programmatically
execute a workflow without having to copy and paste from
notebook to notebook manually.
Papermill takes an opinionated approach to notebook parameterization and
execution based on our experiences using notebooks at scale in data
pipelines.
Installation
From the command line:
pip install papermill
For all optional io dependencies, you can specify individual bundles
like s3, or azure -- or use all. To use Black to format parameters you can add as an extra requires ['black'].
pip install papermill[all]
Python Version Support
This library currently supports Python 3.10+ versions. As minor Python
versions are officially sunset by the Python org papermill will similarly
drop support in the future.
Usage
Parameterizing a Notebook
To parameterize your notebook designate a cell with the tag parameters.
Papermill looks for the parameters cell and treats this cell as defaults for the parameters passed in at execution time. Papermill will add a new cell tagged with injected-parameters with input parameters in order to overwrite the values in parameters. If no cell is tagged with parameters the injected cell will be inserted at the top of the notebook.
Additionally, if you rerun notebooks through papermill and it will reuse the injected-parameters cell from the prior run. In this case Papermill will replace the old injected-parameters cell with the new run's inputs.
Executing a Notebook
The two ways to execute the notebook with parameters are: (1) through
the Python API and (2) through the command line interface.
NOTE:
If you use multiple AWS accounts, and you have properly configured your AWS credentials, then you can specify which account to use by setting the AWS_PROFILE environment variable at the command-line. For example:
In the above example, two parameters are set: alpha and l1_ratio using -p (--parameters also works). Parameter values that look like booleans or numbers will be interpreted as such. Here are the different ways users may set parameters:
$ papermill local/input.ipynb s3://bkt/output.ipynb -r version 1.0
Using -r or --parameters_raw, users can set parameters one by one. However, unlike -p, the parameter will remain a string, even if it may be interpreted as a number or boolean.
nteract/papermill thuộc nhóm Automation trên TopGit, cùng 11 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về nteract/papermill ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/nteract/papermill là nguồn chính thức.
nteract/papermill có phải mã nguồn mở không?
Có — nteract/papermill phát hành theo license BSD-3-Clause, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/nteract/papermill.
nteract/papermill là gì?
nteract/papermill (nteract/papermill) là dự án Python trên GitHub. Theo mô tả gốc: 📚 Parameterize, execute, and analyze notebooks
nteract/papermill so với các dự án Automation khác thế nào?
nteract/papermill được TopGit xếp vào nhóm Automation, với 6.5k sao GitHub và viết bằng Python. Xem trang chủ đề Automation trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Vì sao nteract/papermill được xếp vào nhóm Automation?
TopGit xếp nteract/papermill vào nhóm Automation dựa trên GitHub topics và mô tả của repo (gắn thẻ: "julia", "jupyter", "notebook"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về papermill?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về papermill.