Skip to content

Commit 1669340

Browse files
authored
Add code comp submit example (#714)
This will be in 1.7.4.1, which should go out today.
1 parent f1d0ccd commit 1669340

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

docs/README.md

+17-10
Original file line numberDiff line numberDiff line change
@@ -159,25 +159,30 @@ Note: you will need to accept competition rules at `https://www.kaggle.com/c/<co
159159
##### Submit to a competition
160160

161161
```
162-
usage: kaggle competitions submit [-h] -f FILE_NAME -m MESSAGE [-q]
163-
[competition]
162+
usage: kaggle competitions submit [-h] [-f FILE_NAME] [-k KERNEL] -m MESSAGE [-v VERSION] [-q] [competition]
164163
165-
required arguments:
166-
-f FILE_NAME, --file FILE_NAME
167-
File for upload (full path)
168-
-m MESSAGE, --message MESSAGE
169-
Message describing this submission
170-
171-
optional arguments:
164+
options:
172165
-h, --help show this help message and exit
173166
competition Competition URL suffix (use "kaggle competitions list" to show options)
174167
If empty, the default competition will be used (use "kaggle config set competition")"
168+
-f FILE_NAME, --file FILE_NAME
169+
File for upload (full path), or the name of the output file produced by a kernel (for code competitions)
170+
-k KERNEL, --kernel KERNEL
171+
Name of kernel (notebook) to submit to a code competition
172+
-m MESSAGE, --message MESSAGE
173+
Message describing this submission
174+
-v VERSION, --version VERSION
175+
Version of kernel to submit to a code competition, e.g. "Version 1"
175176
-q, --quiet Suppress printing information about the upload/download progress
176177
```
177178

178179
Example:
179180

180-
`kaggle competitions submit favorita-grocery-sales-forecasting -f sample_submission_favorita.csv.7z -m "My submission message"`
181+
`kaggle competitions submit favorita-grocery-sales-forecasting \
182+
-f sample_submission_favorita.csv.7z -m "My submission message"`
183+
184+
`kaggle competitions submit llms-you-cant-please-them-all \
185+
-k username/llms-can-t-please-all-submission -v 9 -f submission.csv -m "My submission message"'`
181186

182187
Note: you will need to accept competition rules at `https://www.kaggle.com/c/<competition-name>/rules`.
183188

@@ -503,6 +508,8 @@ usage: kaggle kernels push [-h] -p FOLDER
503508
504509
optional arguments:
505510
-h, --help show this help message and exit
511+
-t N, --timeout N Limit the run time of a kernel to the given number of seconds.
512+
The global maximum time will not be exceeded.
506513
-p FOLDER, --path FOLDER
507514
Folder for upload, containing data files and a special kernel-metadata.json file (https://github.com/Kaggle/kaggle-api/wiki/Kernel-Metadata). Defaults to current working directory
508515
```

0 commit comments

Comments
 (0)