xarray-tutorial icon indicating copy to clipboard operation
xarray-tutorial copied to clipboard

missing binder links

Open dcherian opened this issue 3 years ago • 2 comments

On Firefox + MacOS I don't see the binder launch button in the top:

image

dcherian avatar Jun 29 '22 01:06 dcherian

Strange. Took me a while to figure this out, but it is a side effect of #83

Adding kernelspec back into the notebooks brings back the rocket ship, it's possible it can just be empty, would have to test...

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

scottyhq avatar Jun 30 '22 19:06 scottyhq

"metadata": {
  "kernelspec": {
   },

An empty dictionary doesn't work b/c jb build runs nbformat to check metadata tags:

ERROR: Notebook is invalid after preprocessor <nbconvert.preprocessors.tagremove.TagRemovePreprocessor object at 0x112c54a30>

Exception occurred:
  File "/Users/scott/miniconda3/envs/xarray-tutorial/lib/python3.10/site-packages/nbformat/validator.py", line 302, in validate
    raise error
nbformat.validator.NotebookValidationError: data.metadata.kernelspec must contain ['name', 'display_name'] properties

Failed validating <unset> in notebook['data']['metadata']:

scottyhq avatar Jun 30 '22 21:06 scottyhq

Seems that simply waiting has fixed this one :) Maybe bumping jupyterbook versions, but the rocket ship binder launch buttons are back!

scottyhq avatar Jun 26 '24 01:06 scottyhq