Fix bug on nbconvert: No module named 'notebook.services'#1663
Fix bug on nbconvert: No module named 'notebook.services'#1663jalsti wants to merge 2 commits intoipython-contrib:masterfrom
nbconvert: No module named 'notebook.services'#1663Conversation
when running `jupyter nbconvert --execute --allow-errors --to pdf myfile.ipynb` an error occured:
"""
File "/home/user/.local/lib/python3.11/site-packages/jupyter_contrib_nbextensions/nbconvert_support/__init__.py", line 5, in <module>
from .collapsible_headings import ExporterCollapsibleHeadings
File "/home/user/.local/lib/python3.11/site-packages/jupyter_contrib_nbextensions/nbconvert_support/collapsible_headings.py", line 6, in <module>
from notebook.services.config import ConfigManager
ModuleNotFoundError: No module named 'notebook.services'
"""
This change updates `collapsible_headings.py` to use the correct import `from jupyter_server.services.config import ConfigManager`
|
Just encountered this issue right now! Not sure what changed overnight. Thanks for jumping on it! |
|
I just got the same issue! @jalsti, thanks for stepping in and contribution! I tried to implement your change manually. But I got another error when running It seems that there should be some other changes in Before: After: After that my ipynb converting was successful. Just in case: |
|
applying this and @rprilepskiy's changes fixed this issue for me too |
|
same error here fixed , following jupyter/nbconvert#2189 (comment) specs:
|
when running
jupyter nbconvert --execute --allow-errors --to pdf myfile.ipynban error occured:"""
File "/home/user/.local/lib/python3.11/site-packages/jupyter_contrib_nbextensions/nbconvert_support/init.py", line 5, in
from .collapsible_headings import ExporterCollapsibleHeadings
File "/home/user/.local/lib/python3.11/site-packages/jupyter_contrib_nbextensions/nbconvert_support/collapsible_headings.py", line 6, in
from notebook.services.config import ConfigManager
ModuleNotFoundError: No module named 'notebook.services'
"""
This change updates
collapsible_headings.pyto use the correct importfrom jupyter_server.services.config import ConfigManager