-
Notifications
You must be signed in to change notification settings - Fork 809
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
Fix bug on nbconvert
: No module named 'notebook.services'
#1663
base: master
Are you sure you want to change the base?
Conversation
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 |
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
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.py
to use the correct importfrom jupyter_server.services.config import ConfigManager