-
Notifications
You must be signed in to change notification settings - Fork 673
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
Support manual kernel names for notebook execution #1287
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
Note the issue with VS Code is now fixed, in that it now sets standard kernel names like 'python3': microsoft/vscode-jupyter#5732 |
I would love to see this as well, especially if it was able to use conda kernels since it would also solve #1348 |
My current workaround for CI/CD is to manually make
Would really love to see this feature! |
Is your feature request related to a problem? Please describe.
I don't know how to stop my editor (VSCode) to assign strange kernel names to Jupyter notebooks, for example
python392jvsc74a57bd029864609ce42acb949f1cb2f5c54b...
.Other tools (
nbconvert
) allow me to specify a kernel to execute the notebook with independent of the kernel the notebook was created with.Describe the solution you'd like
The tool
nbconvert
has a command line option--kernel_name
that allows to specify the kernel name no matter what is in the notebook's metadata: https://nbconvert.readthedocs.io/en/latest/execute_api.html#execution-arguments-traitletsSuch a command line option would be great.
Describe alternatives you've considered
I can edit notebooks with
jq
and set the kernel name. That is quite unreliable. The other day it changed the indentation of all my notebooks leading to a git diff that I had to revert and I lost some edits.Additional context
I think VSCode is not the only editor that writes unqiue kernel names into the notebook metadata. Any editor that does that breaks a development flow where the public version of the book is built in a continuous integration service that doesn't have access to the local kernels.
The text was updated successfully, but these errors were encountered: