排坑:TypeError: handle_get_file_code() got an unexpected keyword argument ‘save_all‘

1. Error reporting

After installing or updating spyder, when running the previous code, the following error message may appear:

This command failed to be executed because an error occurred while trying to get the file code from Spyder's editor. The error was:
An exception has occurred, use %tb to see the full traceback.
TypeError: handle_get_file_code() got an unexpected keyword argument 'save_all'

Second, the reason for the error

This problem is caused by the kernel version conflict after updating spyder

Three, solve

Reinstall spyder-kernels version 1.9.3

conda install spyder-kernels=1.9.3

Guess you like

Origin blog.csdn.net/TFATS/article/details/110424064