papermill
146 строк · 3.3 Кб
1{
2"cells": [
3{
4"cell_type": "markdown",
5"id": "df2b0bde",
6"metadata": {
7"papermill": {
8"duration": 0.003083,
9"end_time": "2023-11-01T18:34:41.235066",
10"exception": false,
11"start_time": "2023-11-01T18:34:41.231983",
12"status": "completed"
13},
14"tags": []
15},
16"source": [
17"# Simple input notebook with parameters"
18]
19},
20{
21"cell_type": "code",
22"execution_count": 1,
23"id": "0d7af2f3",
24"metadata": {
25"execution": {
26"iopub.execute_input": "2023-11-01T18:34:41.301099Z",
27"iopub.status.busy": "2023-11-01T18:34:41.300307Z",
28"iopub.status.idle": "2023-11-01T18:34:41.306171Z",
29"shell.execute_reply": "2023-11-01T18:34:41.305038Z"
30},
31"papermill": {
32"duration": 0.012465,
33"end_time": "2023-11-01T18:34:41.308519",
34"exception": false,
35"start_time": "2023-11-01T18:34:41.296054",
36"status": "completed"
37},
38"tags": [
39"parameters"
40]
41},
42"outputs": [],
43"source": [
44"msg = None"
45]
46},
47{
48"cell_type": "code",
49"execution_count": 2,
50"id": "a5d4ad35",
51"metadata": {
52"execution": {
53"iopub.execute_input": "2023-11-01T18:34:41.314681Z",
54"iopub.status.busy": "2023-11-01T18:34:41.314338Z",
55"iopub.status.idle": "2023-11-01T18:34:41.318662Z",
56"shell.execute_reply": "2023-11-01T18:34:41.317802Z"
57},
58"papermill": {
59"duration": 0.010058,
60"end_time": "2023-11-01T18:34:41.320883",
61"exception": false,
62"start_time": "2023-11-01T18:34:41.310825",
63"status": "completed"
64},
65"tags": [
66"injected-parameters"
67]
68},
69"outputs": [],
70"source": [
71"# Parameters\n",
72"msg = \"Hello\"\n"
73]
74},
75{
76"cell_type": "code",
77"execution_count": 3,
78"id": "99512b79",
79"metadata": {
80"execution": {
81"iopub.execute_input": "2023-11-01T18:34:41.327359Z",
82"iopub.status.busy": "2023-11-01T18:34:41.326530Z",
83"iopub.status.idle": "2023-11-01T18:34:41.333035Z",
84"shell.execute_reply": "2023-11-01T18:34:41.331879Z"
85},
86"papermill": {
87"duration": 0.012117,
88"end_time": "2023-11-01T18:34:41.335151",
89"exception": false,
90"start_time": "2023-11-01T18:34:41.323034",
91"status": "completed"
92},
93"tags": []
94},
95"outputs": [
96{
97"name": "stdout",
98"output_type": "stream",
99"text": [
100"Hello\n"
101]
102}
103],
104"source": [
105"print(msg)"
106]
107}
108],
109"metadata": {
110"celltoolbar": "Tags",
111"hide_input": false,
112"kernelspec": {
113"display_name": "Python 3",
114"language": "python",
115"name": "python3"
116},
117"language_info": {
118"codemirror_mode": {
119"name": "ipython",
120"version": 3
121},
122"file_extension": ".py",
123"mimetype": "text/x-python",
124"name": "python",
125"nbconvert_exporter": "python",
126"pygments_lexer": "ipython3",
127"version": "3.12.0"
128},
129"papermill": {
130"default_parameters": {},
131"duration": 1.612177,
132"end_time": "2023-11-01T18:34:41.659543",
133"environment_variables": {},
134"exception": null,
135"input_path": "binder/cli-simple/simple_input.ipynb",
136"output_path": "binder/cli-simple/simple_output.ipynb",
137"parameters": {
138"msg": "Hello"
139},
140"start_time": "2023-11-01T18:34:40.047366",
141"version": "2.4.0"
142}
143},
144"nbformat": 4,
145"nbformat_minor": 5
146}
147