Replies: 7 comments 1 reply
-
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
Beta Was this translation helpful? Give feedback.
-
Eurhh, I'm going to tag this as discuss, rather than a bug for now. by contrast, if you create a new notebook in jupyter lab, it will just create a generic kernel spec, which is recognised by any interpreter running python3: "kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
}, If possible I would ask if you (or anyone else interested) could ask VS Code about this and if there is a way to just set a generic kernel name. |
Beta Was this translation helpful? Give feedback.
-
Understood; I did suspect that it is something bizarre that VSCode is doing. I will ask in their forum. Thanks for the very quick responses; much appreciated this whole effort. |
Beta Was this translation helpful? Give feedback.
-
Was halfway through typing up a new issue (same issue w/ More context: The "kernelspec": {
"display_name": "Python [conda env:root] *",
"language": "python",
"name": "conda-root-py"
} Saving the notebook while using a
|
Beta Was this translation helpful? Give feedback.
-
Sorry, I'm not sure I understand what fix you are referring to? IMO I think its a bad idea to be "tying" your notebook to a specific local kernel, if you want to share it, |
Beta Was this translation helpful? Give feedback.
-
Ah should have been more explicit, in the first post ksachdeva is able to get
I concur, thus thinking if it is possible to ignore the kernel spec metadata instead of having it throw errors. |
Beta Was this translation helpful? Give feedback.
-
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
Beta Was this translation helpful? Give feedback.
-
A notebook authored using VSCode built-in editor fails to build.
Steps to reproduce the behavior:
jupyter-book build .
This results in build failing with an exception/error - "NoSuchKernel ..." Here is a trace of the error stack
Environment
Workaround
Here is how I work around this issue-
Open the notebook in raw mode (i.e. json file) and remove
kernelspec
section. For e.g.I go to the location where I have below shown json blob
I then delete the whole
kernelspec
This makes jupyter-book build happy.
Needless to say, it adds/introduces an extra step for me per notebook.
I am not sure if it is VSCode at fault here or jupyter-book is not able to find the appropriate kernel. Note that both use the same virtualenv.
Regards
Kapil
Beta Was this translation helpful? Give feedback.
All reactions