ipython-contrib / jupyter_contrib_nbextensions

A collection of various notebook extensions for Jupyter
http://jupyter-contrib-nbextensions.readthedocs.io/en/latest
Other
5.23k stars 806 forks source link

Spellchecker extension unable to reach CDN on jsdelivr #1525

Closed msm1089 closed 4 years ago

msm1089 commented 4 years ago

The spellchecker seems to be using outdated sources for it's .dic and .aff files:

Failed to load resource (https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_en.aff?v=20200909135715): the server responded with a status of 404

Similar error for the .dic file too.

I looked into whether I could change these URLS by checking the jsdelvr site. But it only gives a format such as

https://cdn.jsdelivr.net/npm/codemirror-spell-checker@1.1.2/src/js/spell-checker.min.js

I'm not sure how to pull in the 2 separate files as required by the extension. Anyone able to advise on what the URLs should now be please?

msm1089 commented 4 years ago

I have found out the URLs for en_EN. They can be used in the .jupyter\nbconfig\notebook.json file. I would guess, but have not looked, that other languages can be found at equvalent URLs

...
"comment_uncomment_indent": true,
  "spellchecker": {
    "lang_code": "en_en",
    "dic_url": "https://cdn.jsdelivr.net/npm/dictionary-en@3.0.0/index.dic",
    "aff_url": "https://cdn.jsdelivr.net/npm/dictionary-en@3.0.0/index.aff"
  },
...