kernel-run icon indicating copy to clipboard operation
kernel-run copied to clipboard

ApiError: The kernel source must be less than 1 megabytes in size.

Open tbrodbeck opened this issue 3 years ago • 0 comments

Hi. I tried this and was getting this error once using this notebook: https://github.com/JanSchm/CapMarket/blob/master/bot_experiments/IBM_Transformer%2BTimeEmbedding.ipynb

$ kernel-run IBM_Transformer+TimeEmbedding.ipynb
Traceback (most recent call last):
  File "/usr/local/bin/kernel-run", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/site-packages/kernel_run/cli.py", line 31, in main
    create_kernel(path_or_url=args.notebook_path_or_url,
  File "/usr/local/lib/python3.9/site-packages/kernel_run/__init__.py", line 49, in create_kernel
    res_json = push_kernel(nbtext, fname, creds, public, new, prefix)
  File "/usr/local/lib/python3.9/site-packages/kernel_run/utils/network.py", line 69, in push_kernel
    raise ApiError(_pretty(res))
kernel_run.utils.network.ApiError: (HTTP 400) {"code":400,"message":"The kernel source must be less than 1 megabytes in size."}

And on another version of the same notebook I got this:

$ kernel-run IBM_Transformer+TimeEmbedding.ipynb
Traceback (most recent call last):
  File "/usr/local/bin/kernel-run", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/site-packages/kernel_run/cli.py", line 31, in main
    create_kernel(path_or_url=args.notebook_path_or_url,
  File "/usr/local/lib/python3.9/site-packages/kernel_run/__init__.py", line 52, in create_kernel
    kernel_url = res_json['url'] + "/edit"
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

tbrodbeck avatar May 24 '21 17:05 tbrodbeck