Skip to content
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

incorrect kernelspec causes failures. #121

Open
flamingbear opened this issue Dec 11, 2024 · 0 comments
Open

incorrect kernelspec causes failures. #121

flamingbear opened this issue Dec 11, 2024 · 0 comments

Comments

@flamingbear
Copy link
Member

In reviewing #116, I couldn't run the notebook and and it looked like it was failing to find the correct conda env.

./run_notebooks.sh sambah
<[snip]>
RuExecuting:   0%|          | 0/25 [00:00<?, ?cell/s]Kernelspec name papermill-sambah cannot be found!
No such kernel named papermill-sambah

Investigation showed ipython notebook had an unexpected kernelspec.

The samba metadata in the ipython notebook was:

"kernelspec": {
"display_name": "papermill-sambah",
"language": "python",
"name": "papermill-sambah"

vs the spec in a working notebook

  "celltoolbar": "Tags",
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },

Changing the name to python3 enabled the test to run correctly.

Danny said he had generated he .ipynb file via jupyterlab. I think that's a good place to start, but we should fix this so that it doesn't matter how you generated the iPython notebook test file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant