Fix `jupyter-nbextension` Not Found
jupyter-nbextension is usually not found because you are using Jupyter Notebook 7 or JupyterLab, which do not use the old classic Notebook nbextension workflow, or because classic Notebook 6 is installed in a different Python environment or scripts directory. The right fix depends on the Notebook generation and on whether the feature you want is a browser extension, server extension, or JupyterLab extension. Start by identifying your active environment before reinstalling packages or editing PATH.
Use this table to match the error to the likely fix.
| Symptom | Likely Cause | What To Do |
|---|---|---|
jupyter nbextension reports that jupyter-nbextension is not found |
You have Notebook 7 or JupyterLab rather than classic Notebook 6 | Use an extension that supports JupyterLab/Notebook 7, or create a separate classic Notebook 6 environment for a legacy extension |
jupyter works but jupyter nbextension does not |
The jupyter-nbextension script is installed outside your shell’s PATH, or jupyter comes from another environment |
Activate the environment that contains Notebook 6, then test the command again |
ModuleNotFoundError: No module named 'notebook.nbextensions' |
Code or an extension expects the classic Notebook package layout | Use a version compatible with classic Notebook 6, or replace the extension with a modern alternative |
No module named 'notebook.extensions' |
The package is importing an obsolete or incorrect Notebook extension module | Do not install a random module with that name; use the extension’s current supported installation instructions |
What the Missing Jupyter Command Means
When you run the following command, the Jupyter launcher looks for a companion executable named jupyter-nbextension.
jupyter nbextension
That executable belonged to the classic Jupyter Notebook extension system. It was used to install, enable, disable, and list frontend extensions known as nbextensions.
Classic nbextensions are not ordinary Python features. They are browser-side JavaScript and CSS assets loaded by the classic Notebook interface. A classic frontend extension normally provides an AMD JavaScript module that exports load_ipython_extension.
Notebook 7 uses the newer JupyterLab-based frontend architecture instead. A legacy classic nbextension may therefore be unavailable even though the jupyter command itself works perfectly.
A missing subcommand can mean either that your shell cannot find an installed classic command or that the command belongs to an obsolete extension workflow for your installed Notebook version.
Choose the Correct Jupyter Extension Workflow
Before trying to restore jupyter-nbextension, identify what the extension is meant to add.
| You Want To Add | Extension Type | Use This Workflow |
|---|---|---|
| Buttons, menus, cell behavior, custom JavaScript, or custom CSS in classic Notebook | Classic nbextension | Use Notebook 6 and the jupyter nbextension commands |
| Authentication, request handling, server configuration, APIs, or other Python-side behavior | Server extension | Use the package’s server-extension installation instructions |
| A File > Download As or deployment-style menu action | Bundler extension | Use the package’s bundler instructions |
| A current extension for JupyterLab or Notebook 7 | JupyterLab extension | Install the package version that explicitly supports JupyterLab or Notebook 7 |
A server extension is separate from a browser extension. In the classic Notebook model, it is an importable Python module that implements load_jupyter_server_extension. Installing an nbextension will not enable a server-only feature.
A bundler is separate as well. It adds a menu trigger, such as a File > Download As or deployment action, and implements bundle. If a package is intended to create that menu behavior, nbextension troubleshooting is the wrong path.
How to Fix jupyter-nbextension Not Found
Step 1: Identify the Jupyter and Notebook Installation You Are Actually Using
Run these commands in the same terminal where you saw the error.
jupyter --version
python -m pip show notebook
python -c "import notebook, sys; print(sys.executable); print(notebook.__version__); print(notebook.__file__)"
Look for these results:
- If the Notebook version is 7 or newer, do not expect the legacy nbextension command to be available.
- If the Python command cannot import
notebook, your active Python environment does not contain the Notebook package. - If
jupyter --versionshows one environment’s packages but the Python command prints a different interpreter or package location, you have mixed environments.
This mismatch is common when Jupyter was installed globally, while an extension was installed with a user-level pip command, inside a virtual environment, or in a Conda environment.
Notebook 7 and JupyterLab
If you use Notebook 7 or JupyterLab, do not install an old contrib nbextension package just to make the command appear. Those packages target the classic Notebook frontend and may not work with the modern interface.
Instead:
- Find an extension that explicitly says it supports JupyterLab or Notebook 7.
- Install it using the package manager and installation method the extension project supports.
- Restart the Jupyter server after installation.
- Open the interface and confirm that the extension’s command, menu item, sidebar, or settings panel appears.
Many current JupyterLab extensions are distributed as prebuilt Python packages. They are installed with the package itself rather than with a separate frontend command.
Since Notebook 5.3, extension packages can also arrange their client and server assets through the package manager. Check whether the extension package supports automatic installation before trying to manually restore an old subcommand.
Classic Notebook 6 for a Legacy Nbextension
Use this route only when you specifically need a classic nbextension that documents support for Notebook 6.
The safest approach is to create a separate environment rather than downgrading the Notebook installation you use for current work.
On macOS or Linux, create and activate a virtual environment:
python -m venv .jupyter-classic
source .jupyter-classic/bin/activate
Install classic Notebook:
python -m pip install "notebook<7"
Confirm that the legacy command is available:
jupyter nbextension list
Start classic Notebook from that same activated environment:
jupyter notebook
On Windows PowerShell, create and activate the environment this way:
py -m venv .jupyter-classic
.\.jupyter-classic\Scripts\Activate.ps1
Then install and test classic Notebook:
python -m pip install "notebook<7"
jupyter nbextension list
Keeping classic Notebook in its own environment prevents an old extension from interfering with Notebook 7 or JupyterLab packages elsewhere on your machine.
Install and Enable a Classic Nbextension
Once jupyter nbextension list works, follow the extension package’s instructions. A Python package that exposes classic nbextension assets can use this pattern; replace PACKAGE_MODULE with the package’s documented importable module name.
jupyter nbextension install --py PACKAGE_MODULE --sys-prefix
jupyter nbextension enable --py PACKAGE_MODULE --sys-prefix
jupyter nbextension list
The --sys-prefix option installs and enables the assets inside the active virtual environment or Conda environment. This matters because the Notebook server must be launched from that same environment for it to find the extension.
The Jupyter Notebook 6 extension documentation documents the classic install, enable, and list commands, along with package-based installation for frontend and server components.
Repair a PATH Problem
If classic Notebook 6 is installed but the subcommand still cannot be found, check which executables your shell sees.
On macOS or Linux:
command -v jupyter
command -v jupyter-nbextension
On Windows Command Prompt:
where jupyter
where jupyter-nbextension
If jupyter-nbextension is missing while the classic Notebook package is installed, first activate the virtual environment or Conda environment where you installed it. Activation puts that environment’s scripts directory at the front of PATH.
For a user-level pip installation on macOS or Linux, find Python’s user base directory:
python -m site --user-base
The scripts directory is normally the returned directory plus /bin. You can add it for the current terminal session with:
export PATH="$(python -m site --user-base)/bin:$PATH"
Then test the command:
jupyter nbextension list
On Windows, add the Scripts folder beneath the directory printed by python -m site --user-base to your user Path environment variable, then open a new terminal. Put that entry ahead of conflicting Python or Jupyter script directories.
Avoid mixing system-wide installs, sudo pip, user installs, and virtual-environment installs for the same Jupyter setup. Use python -m pip so the package installer belongs to the Python interpreter you intend to use.
Fix ModuleNotFoundError for Notebook Extension Modules
ModuleNotFoundError: No module named 'notebook.nbextensions' usually means a package was written for classic Notebook 6 but is being run with Notebook 7 or an environment without the classic Notebook package.
Do not try to solve this by installing a package called notebook.nbextensions. That name refers to an internal module path from the classic Notebook codebase, not a standalone dependency.
Use one of these fixes:
- Install the extension in a dedicated environment containing
notebook<7. - Upgrade to a maintained version of the extension that supports Notebook 7 or JupyterLab.
- Replace an unmaintained classic extension with a modern JupyterLab or Notebook 7 alternative.
- If you maintain the code, update it to use the extension API for the Jupyter platform version you support rather than importing classic Notebook internals.
No module named 'notebook.extensions' has a similar cause. It is not a module you should add independently; it generally indicates old code, an incorrect import path, or documentation written for another Jupyter generation.
Confirm the Fix and Keep Environments Separate
After making a change, verify the command and the running server in the same environment.
For a classic Notebook setup, this should show installed and enabled nbextensions without a command-not-found error:
jupyter nbextension list
Then launch Notebook from that same terminal:
jupyter notebook
Use this quick checklist:
- The terminal is using the intended virtual environment or Conda environment.
python -m pip show notebookidentifies the expected Notebook package.jupyter --versionand Python refer to the same environment.- Classic nbextensions are used only with Notebook 6.
- Notebook 7 and JupyterLab extensions are installed using their current package-supported workflow.
- The Jupyter server has been restarted after changing extension packages or configuration.
Frequently Asked Questions
Why does jupyter work but jupyter nbextension fail?
jupyter is the main launcher, while jupyter nbextension depends on a separate legacy executable named jupyter-nbextension. The main launcher may come from a system installation while the legacy script is in a virtual environment, Conda environment, or user scripts directory that is not on PATH. Activating the environment containing classic Notebook 6 usually resolves that mismatch.
Can I use jupyter contrib nbextension install with Notebook 7?
No, not as a supported modern extension workflow. The contrib nbextensions collection targets the classic Notebook interface and can rely on APIs that Notebook 7 no longer provides. Use a maintained JupyterLab or Notebook 7 extension instead, or run the legacy extension in an isolated notebook<7 environment.
How do I fix No module named 'notebook.nbextensions'?
Install and run the affected legacy extension in an environment with notebook<7, or replace it with a version that explicitly supports Notebook 7 or JupyterLab. The missing name is part of the classic Notebook module layout, not a Python package that should be installed separately.
Do I always need to run jupyter nbextension install manually?
No. Starting with Notebook 5.3, a properly packaged extension can have its frontend and server assets handled automatically by the package manager. Manual install and enable commands are appropriate only when the extension’s own classic Notebook 6 instructions require them.
Should I add jupyter-nbextension to PATH?
Only if classic Notebook 6 is actually installed in the environment you intend to use. Adding a directory to PATH cannot make a legacy command compatible with Notebook 7, and it can create more confusion if it points to a different Python environment. Identify the intended Notebook version first, then activate that environment or add its scripts directory to PATH.
