-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set default values for name and display_name in kernelspec #141
Comments
Had the same issue. A hacky fix for now is you can go into _util.py manually, insert:
inside strip_output() |
Hope this helps, but I've found that deleting the entire kernelspec (i.e. the extra key is: |
I can confirm the behavior @sp-fm is seeing and the suggestion from @ESKYoung works for me. Seems GitHub renders notebooks without I've added a note to the README. Let me know if that's satisfactory for you. |
Looks good to me @kynan, thanks! |
Thanks. I'll close this. Please reopen if the proposed solution doesn't work for someone. |
Jupyter Version
NOTE: The latest version of jupyter changed
metadata.kernel_spec
tometadata.kernelspec
.Problem
I stripped the
kernelspec
metadata using the following command:On doing so I encountered two problems:
git checkout
to undo those changes it removes the kernelspec name and display_name metadata. This is as expected. But when I try to rerun the notebook it throws the following errors:a. Kernel not found
b. Notebook validation failed: 'name' is a required property:
c. Notebook validation failed: 'display_name' is a required property:
Change Request
Is it possible to set the name and display_name to a default value such as:
The text was updated successfully, but these errors were encountered: