I am attempting to enable autocomplete features in my Jupyter Notebook, which is set up inside a pipenv virtual environment. For this, I tried installing the jupyter_contrib_nbextensions package using the following command: pipenv install jupyter_contrib_nbextensions The package installs successfully. However, when I run the command to install the notebook extensions: jupyter contrib nbextension install --user I encounter the following error: from notebook.nbextensions import BaseNBExtensionApp ModuleNotFoundError: No module named 'notebook.nbextensions' The traceback also refers to the file: venv\lib\site-packages\jupyter_contrib_core\notebook_compat\nbextensions.py I have attempted different versions of jupyter_contrib_nbextensions, but the issue persists. It seems like the module path or compatibility with the notebook package is causing the problem. Question: How can I correctly enable jupyter_contrib_nbextensions for use within a pipenv-based Jupyter Notebook environment and resolve the ModuleNotFoundError for notebook.nbextensions? Installed Jupyter Notebook using Pipenv Set up a virtual environment with pipenv and installed jupyter. Installed jupyter_contrib_nbextensions via Pipenv Ran: pipenv install jupyter_contrib_nbextensions Installation completed without errors. Attempted to Enable Extensions jupyter contrib nbextension install --user Encountered the following error: ModuleNotFoundError: No module named 'notebook.nbextensions' The traceback points to: venv\lib\site-packages\jupyter_contrib_core\notebook_compat\nbextensions.py Tried Different Versions of jupyter_contrib_nbextensions Downgraded/upgraded the package in case of version incompatibility. The issue remained unchanged. Continue reading...