0

I am trying to include notebook in sphinx documentation. I installed nbsphinx.

But when I do make html, the following error appears

make html Running Sphinx v5.3.0

Extension error: Could not import extension nbsphinx (exception: cannot import name 'ensure_async' from 'jupyter_core.utils' (C:\Users\xxxx\anaconda3\envs\xxxx\lib\site-packages\jupyter_core\utils\__init__.py))

Suggestions on how to fix this will be really helpful.

Natasha
  • 1,111
  • 5
  • 28
  • 66
  • It's likely a version conflict between different versions of Python packages you have installed. – Mikko Ohtamaa Feb 06 '23 at 16:56
  • @MikkoOhtamaa Could you please suggest how to check what's incompatible? – Natasha Feb 07 '23 at 03:40
  • I am not an expert on Anaconda. You need to refer to Anaconda community how to check package versions and then read the respective release notes of those packages to try to find a clue. – Mikko Ohtamaa Feb 07 '23 at 08:11
  • I would suggest to build your documentation on a isolated venv/conda with only the needed libs installed. It's better to mimic what's happening on prod servers and avoid this kind of bugs – Pierrick Rambaud Feb 23 '23 at 10:19

0 Answers0