{"library":"nbdev","title":"nbdev: Notebook Driven Development","description":"nbdev is a Python library that enables a complete literate programming environment, allowing users to develop, test, document, and deploy software using Jupyter Notebooks. It leverages Quarto for powerful documentation generation and provides a robust command-line interface for managing the development workflow. Currently at version 3.0.15, nbdev maintains a rapid release cadence, frequently pushing minor updates and bug fixes.","language":"python","status":"active","last_verified":"Fri Apr 17","install":{"commands":["pip install nbdev"],"cli":{"name":"nbdev","version":"sh: 1: nbdev: not found"}},"imports":["from nbdev.showdoc import show_doc"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# 1. Create a new nbdev project (run in your terminal)\nnbdev_new --user \"Your Name\" --email \"your@example.com\" --repo-path my_nbdev_project --git-url \"https://github.com/your-username/my_nbdev_project\" --lib-name my_nbdev_project\ncd my_nbdev_project\n\n# 2. Open 00_core.ipynb (or create a new notebook like `01_utils.ipynb`)\n# Add a cell with `#|export` at the top and define a function:\n# #|export\n# def greet(name):\n#     \"Returns a personalized greeting\"\n#     return f\"Hello, {name}!\"\n\n# 3. Export your notebooks to Python modules\nnbdev_export\n\n# 4. Test your library\nnbdev_test\n\n# 5. Generate documentation (requires Quarto CLI installed separately)\n# nbdev_docs serve # To build and serve docs locally","lang":"bash","description":"This quickstart demonstrates the typical nbdev CLI workflow: creating a new project, exporting notebook code to Python modules, running tests, and generating documentation. Remember to manually create/edit a notebook file with '#|export' cells before running `nbdev_export`.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}