nbdev 3.0.12


pip install nbdev

  Latest version

Released: Feb 14, 2026


Meta
Author: Jeremy Howard and the fast.ai community
Requires Python: >=3.9

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers

Natural Language
  • English

Programming Language
  • Python :: 3
  • Python :: 3 :: Only

License
  • OSI Approved :: Apache Software License

Getting Started

CI

🛑Jan 2026 Major Version Update – Breaking Change🛑

nbdev3 is here! As many of you have been requesting, configuration has moved from settings.ini to pyproject.toml, following modern Python packaging standards (PEP 621). Your project metadata now lives in the standard [project] section, while nbdev-specific settings go in [tool.nbdev].

Migrating from nbdev2: Run nbdev-migrate-config in your project root to automatically convert your settings.ini to pyproject.toml and update your GitHub Actions workflows to use nbdev3-compatible versions. Your existing notebooks and code don’t need any changes.

nbdev is a notebook-driven development platform. Simply write notebooks with lightweight markup and get high-quality documentation, tests, continuous integration, and packaging for free!

nbdev makes debugging and refactoring your code much easier than in traditional programming environments since you always have live objects at your fingertips. nbdev also promotes software engineering best practices because tests and documentation are first class.

  • Documentation is automatically generated using Quarto and hosted on GitHub Pages. Docs support LaTeX, are searchable, and are automatically hyperlinked (including out-of-the-box support for many packages via nbdev-index)
  • Publish packages to PyPI and conda as well as tools to simplify package releases. Python best practices are automatically followed, for example, only exported objects are included in __all__
  • Two-way sync between notebooks and plaintext source code allowing you to use your IDE for code navigation or quick edits. Sync is robust: each exported cell is tagged with its unique notebook cell ID, so nbdev-update always updates the correct cell
  • Tests written as ordinary notebook cells are run in parallel with a single command
  • Continuous integration out-of-the-box with GitHub Actions that run your tests and rebuild your docs
  • Git-friendly notebooks with Jupyter/Git hooks that clean unwanted metadata and render merge conflicts in a human-readable format
  • … and much more!

Install

nbdev works on macOS, Linux, and most Unix-style operating systems. It works on Windows under WSL, but not under cmd or Powershell.

You can install nbdev with pip:

pip install nbdev

Note that nbdev must be installed into the same Python environment that you use for both Jupyter and your project.

How to use nbdev

The best way to learn how to use nbdev is to complete either the written walkthrough or video walkthrough:

Alternatively, there’s a shortened version of the video walkthrough with coding sections sped up using the unsilence Python library – it’s 27 minutes faster, but a bit harder to follow.

You can also run nbdev-help from the terminal to see the full list of available commands:

!nbdev-help
nb-export                 Export a single nbdev notebook to a python script.
nbdev-bump-version        Increment version in __init__.py by one
nbdev-changelog           Create a CHANGELOG.md file from closed and labeled GitHub issues
nbdev-clean               Clean all notebooks in `fname` to avoid merge conflicts
nbdev-conda               Create a `meta.yaml` file ready to be built into a package, and optionally build and upload it
nbdev-contributing        Create CONTRIBUTING.md from contributing_nb (defaults to 'contributing.ipynb' if present). Skips if the file doesn't exist.
nbdev-create-config       Create a pyproject.toml config file.
nbdev-docs                Create Quarto docs and README.md
nbdev-export              Export notebooks in `path` to Python modules
nbdev-filter              A notebook filter for Quarto
nbdev-fix                 Create working notebook from conflicted notebook `nbname`
nbdev-help                Show help for all console scripts
nbdev-install             Install Quarto and the current library
nbdev-install-hooks       Install Jupyter and git hooks to automatically clean, trust, and fix merge conflicts in notebooks
nbdev-install-quarto      Install latest Quarto on macOS or Linux, prints instructions for Windows
nbdev-merge               Git merge driver for notebooks
nbdev-migrate             Convert all markdown and notebook files in `path` from v1 to v2
nbdev-migrate-config      Migrate settings.ini to pyproject.toml
nbdev-new                 Create an nbdev project.
nbdev-prepare             Export, test, and clean notebooks, and render README if needed
nbdev-preview             Preview docs locally
nbdev-proc-nbs            Process notebooks in `path` for docs rendering
nbdev-pypi                Create and upload Python package to PyPI
nbdev-readme              Create README.md from readme_nb (index.ipynb by default)
nbdev-release-both        Release both conda and PyPI packages
nbdev-release-gh          Calls `nbdev_changelog`, lets you edit the result, then pushes to git and calls `nbdev_release_git`
nbdev-release-git         Tag and create a release in GitHub for the current version
nbdev-requirements        Writes a `requirements.txt` file to `directory` based on pyproject.toml.
nbdev-sidebar             Create sidebar.yml
nbdev-test                Test in parallel notebooks matching `path`, passing along `flags`
nbdev-trust               Trust notebooks matching `fname`.
nbdev-update              Propagate change in modules matching `fname` to notebooks that created them
nbdev-update-license      Allows you to update the license of your project.
watch-export              Use `nb_export` on ipynb files in `nbs` directory on changes using nbdev config if available

FAQ

Q: What is the warning “Found a cell containing mix of imports and computations. Please use separate cells”?

A: You should not have cells that are not exported, and contain a mix of import statements along with other code. For instance, don’t do this in a single cell:

import some_module
some_module.something()

Instead, split this into two cells, one which does import some_module, and the other which does some_module.something().

The reason for this is that when we create your documentation website, we ensure that all of the signatures for functions you document are up to date, by running the imports, exported cells, and show_doc functions in your notebooks. When you mix imports with other code, that other code will be run too, which can cause errors (or at least slowdowns) when creating your website.

Q: Why is nbdev asking for root access? How do I install Quarto without root access?

A: When you setup your first project, nbdev will attempt to automatically download and install Quarto for you. This is the program that we use to create your documentation website.

Quarto’s standard installation process requires root access, and nbdev will therefore ask for your root password during installation. For most people, this will work fine and everything will be handled automatically – if so, you can skip over the rest of this section, which talks about installing without root access.

If you need to install Quarto without root access on Linux, first cd to wherever you want to store it, then download Quarto, and type:

dpkg -x quarto*.deb .
mv opt/quarto ./
rmdir opt
mkdir -p ~/.local/bin
ln -s "$(pwd)"/quarto/bin/quarto ~/.local/bin

To use this non-root version of Quarto, you’ll need ~/.local/bin in your PATH environment variable. (Alternatively, change the ln -s step to place the symlink somewhere else in your path.)

Q: Someone told me not to use notebooks for “serious” software development!

A: Watch this video. Don’t worry, we still get this too, despite having used nbdev for a wide range of “very serious” software projects over the last three years, including deep learning libraries, API clients, Python language extensions, terminal user interfaces, and more!

Contributing

If you want to contribute to nbdev, be sure to review the contributions guidelines. This project adheres to fastai’s code of conduct. By participating, you are expected to uphold this code. In general, we strive to abide by generally accepted best practices in open-source software development.

Make sure you have nbdev’s git hooks installed by running nbdev-install-hooks in the cloned repository.

Copyright

Copyright © 2019 onward fast.ai, Inc. Licensed under the Apache License, Version 2.0 (the “License”); you may not use this project’s files except in compliance with the License. A copy of the License is provided in the LICENSE file in this repository.

3.0.12 Feb 14, 2026
3.0.11 Feb 14, 2026
3.0.10 Feb 04, 2026
3.0.9 Feb 03, 2026
3.0.8 Jan 31, 2026
3.0.7 Jan 29, 2026
3.0.6 Jan 29, 2026
3.0.5 Jan 29, 2026
3.0.4 Jan 29, 2026
3.0.3 Jan 29, 2026
3.0.2 Jan 29, 2026
3.0.1 Jan 29, 2026
3.0.0 Jan 28, 2026
2.4.14 Jan 20, 2026
2.4.13 Jan 19, 2026
2.4.12 Jan 19, 2026
2.4.11 Jan 16, 2026
2.4.10 Jan 05, 2026
2.4.9 Jan 05, 2026
2.4.8 Jan 05, 2026
2.4.7 Dec 19, 2025
2.4.6 Oct 15, 2025
2.4.5 Jul 19, 2025
2.4.4 Jul 02, 2025
2.4.3 Jul 02, 2025
2.4.2 Apr 03, 2025
2.4.1 Apr 02, 2025
2.4.0 Apr 02, 2025
2.3.37 Mar 18, 2025
2.3.36 Mar 17, 2025
2.3.35 Mar 08, 2025
2.3.34 Dec 03, 2024
2.3.33 Nov 29, 2024
2.3.32 Nov 20, 2024
2.3.31 Sep 18, 2024
2.3.30 Sep 14, 2024
2.3.29 Sep 01, 2024
2.3.28 Aug 27, 2024
2.3.27 Jul 30, 2024
2.3.26 Jul 26, 2024
2.3.25 Jun 02, 2024
2.3.23 May 18, 2024
2.3.22 May 17, 2024
2.3.21 May 14, 2024
2.3.20 May 02, 2024
2.3.19 Apr 30, 2024
2.3.18 Apr 30, 2024
2.3.17 Apr 29, 2024
2.3.16 Apr 28, 2024
2.3.15 Apr 28, 2024
2.3.14 Apr 28, 2024
2.3.13 Oct 19, 2023
2.3.12 Feb 15, 2023
2.3.11 Feb 03, 2023
2.3.10 Feb 01, 2023
2.3.9 Nov 08, 2022
2.3.8 Nov 02, 2022
2.3.7 Sep 26, 2022
2.3.6 Sep 18, 2022
2.3.5 Sep 18, 2022
2.3.4 Sep 16, 2022
2.3.3 Sep 16, 2022
2.3.2 Sep 15, 2022
2.3.1 Sep 14, 2022
2.3.0 Sep 14, 2022
2.2.10 Sep 01, 2022
2.2.9 Sep 01, 2022
2.2.8 Aug 26, 2022
2.2.7 Aug 26, 2022
2.2.6 Aug 21, 2022
2.2.5 Aug 19, 2022
2.2.4 Aug 19, 2022
2.2.3 Aug 19, 2022
2.2.2 Aug 18, 2022
2.2.1 Aug 18, 2022
2.2.0 Aug 18, 2022
2.1.7 Aug 13, 2022
2.1.6 Aug 13, 2022
2.1.5 Aug 13, 2022
2.1.4 Aug 13, 2022
2.1.3 Aug 07, 2022
2.1.2 Aug 06, 2022
2.1.1 Aug 03, 2022
2.1.0 Aug 02, 2022
2.0.8 Aug 02, 2022
2.0.7 Aug 01, 2022
2.0.6 Jul 31, 2022
2.0.5 Jul 30, 2022
2.0.4 Jul 28, 2022
2.0.3 Jul 27, 2022
2.0.2 Jul 27, 2022
2.0.1 Jul 27, 2022
2.0.0 Jul 27, 2022
2.0.0.dev5 Jul 26, 2022
2.0.0.dev4 Jul 26, 2022
2.0.0.dev3 Jul 25, 2022
2.0.0.dev2 Jul 25, 2022
2.0.0.dev1 Jul 24, 2022
1.2.11 Jul 07, 2022
1.2.10 Jun 17, 2022
1.2.9 Jun 09, 2022
1.2.8 Apr 30, 2022
1.2.7 Apr 30, 2022
1.2.6 Apr 29, 2022
1.2.5 Mar 31, 2022
1.2.4 Mar 31, 2022
1.2.3 Mar 25, 2022
1.2.2 Feb 24, 2022
1.2.1 Feb 24, 2022
1.2.0 Feb 15, 2022
1.1.23 Oct 29, 2021
1.1.22 Aug 21, 2021
1.1.21 Aug 10, 2021
1.1.20 Aug 09, 2021
1.1.19 Jul 26, 2021
1.1.17 Jul 26, 2021
1.1.16 Jul 26, 2021
1.1.15 Jul 23, 2021
1.1.14 Apr 08, 2021
1.1.13 Feb 23, 2021
1.1.12 Jan 19, 2021
1.1.11 Jan 12, 2021
1.1.10 Jan 12, 2021
1.1.9 Jan 12, 2021
1.1.8 Jan 12, 2021
1.1.7 Jan 12, 2021
1.1.6 Jan 06, 2021
1.1.5 Nov 01, 2020
1.1.4 Oct 16, 2020
1.1.3 Oct 16, 2020
1.1.2 Oct 11, 2020
1.1.1 Oct 11, 2020
1.1.0 Sep 29, 2020
1.0.18 Sep 11, 2020
1.0.17 Sep 11, 2020
1.0.16 Sep 11, 2020
1.0.14 Sep 08, 2020
1.0.13 Sep 08, 2020
1.0.12 Sep 07, 2020
1.0.11 Sep 07, 2020
1.0.10 Aug 29, 2020
1.0.9 Aug 29, 2020
1.0.8 Aug 29, 2020
1.0.7 Aug 29, 2020
1.0.6 Aug 27, 2020
1.0.5 Aug 27, 2020
1.0.4 Aug 26, 2020
1.0.3 Aug 26, 2020
1.0.2 Aug 26, 2020
1.0.1 Aug 20, 2020
1.0.0 Aug 20, 2020
0.2.40 Aug 18, 2020
0.2.39 Aug 18, 2020
0.2.38 Aug 13, 2020
0.2.37 Aug 13, 2020
0.2.36 Aug 10, 2020
0.2.35 Aug 10, 2020
0.2.34 Aug 10, 2020
0.2.33 Aug 10, 2020
0.2.32 Aug 10, 2020
0.2.31 Aug 10, 2020
0.2.30 Aug 10, 2020
0.2.29 Aug 10, 2020
0.2.28 Aug 09, 2020
0.2.27 Aug 07, 2020
0.2.26 Aug 07, 2020
0.2.25 Aug 07, 2020
0.2.24 Aug 06, 2020
0.2.23 Aug 06, 2020
0.2.22 Aug 06, 2020
0.2.21 Aug 05, 2020
0.2.20 Jul 27, 2020
0.2.19 Jul 27, 2020
0.2.18 Apr 28, 2020
0.2.17 Apr 05, 2020
0.2.16 Mar 25, 2020
0.2.15 Mar 18, 2020
0.2.14 Mar 17, 2020
0.2.13 Mar 05, 2020
0.2.12 Feb 20, 2020
0.2.11 Feb 13, 2020
0.2.10 Feb 12, 2020
0.2.9 Jan 23, 2020
0.2.8 Jan 22, 2020
0.2.7 Jan 18, 2020
0.2.6 Jan 18, 2020
0.2.5 Jan 07, 2020
0.2.4 Jan 02, 2020
0.2.3 Dec 28, 2019
0.2.2 Dec 27, 2019
0.2.1 Dec 23, 2019
0.2.0 Dec 16, 2019
0.1.10 Dec 16, 2019
0.1.9 Dec 16, 2019
0.1.8 Dec 16, 2019
0.1.7 Dec 16, 2019
0.1.6 Dec 07, 2019
0.1.5 Dec 03, 2019
0.1.4 Dec 02, 2019
0.1.3 Dec 02, 2019
0.1.2 Nov 29, 2019
0.1.1 Nov 27, 2019
0.1.0 Nov 26, 2019
0.0.3 Nov 23, 2019
0.0.2 Nov 23, 2019
0.0.1 Nov 22, 2019

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
fastcore (>=1.12.3)
execnb (>=0.1.12)
astunparse
ghapi (>=1.0.3)
watchdog
asttokens
setuptools
build
fastgit
pyyaml
tomli