Kaggle / kaggle-api

Official Kaggle API
Apache License 2.0
6.16k stars 1.08k forks source link

[BUG] "Kernel push error: Notebook not found" - unable to push notebook #545

Closed ARKAD97 closed 7 months ago

ARKAD97 commented 7 months ago

First, I pull my existing notebook:

kaggle kernels pull -p path/to/dir --metadata nickname/name

Then I do:

kaggle kernels push -p path/to/dir

And getting error:

Kernel push error: Notebook not found

both notebook and metadata are in place. Tried to cd into directory and run kaggle kernels push - the result is the same.

kaggle version = 1.6.5 python version = 3.10 Linux ac746e85fdc9 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Running in cloud on slightly modified official kaggle docker.

Thank you for your help

ARKAD97 commented 7 months ago

Figured it out. You have to save your notebook in web interface before updating it.

Would be great if this info added to the documentation

Yudis53732 commented 3 weeks ago

First, I pull my existing notebook:

kaggle kernels pull -p path/to/dir --metadata nickname/name/

Then I do:

kaggle kernels push -p path/to/dir

And getting

Kernel push : Notebook not found

both notebook and metadata are in place. Tried to cd into directory and run kaggle kernels push - the result is the same.

kaggle version = 1.6.5 python version = 3.10 Linux ac746e85fdc9 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Running in cloud on slightly modified official kaggle docker.