|
38 | 38 | "from nbdev.test import *\n",
|
39 | 39 | "from nbdev.clean import *\n",
|
40 | 40 | "from nbdev.quarto import nbdev_readme, refresh_quarto_yml\n",
|
| 41 | + "from nbdev.export import nb_export\n", |
41 | 42 | "from nbdev.frontmatter import FrontmatterProc\n",
|
42 | 43 | "\n",
|
43 | 44 | "from execnb.nbio import *\n",
|
|
286 | 287 | " print(f\"License updated from {curr_lic} to {to}\")"
|
287 | 288 | ]
|
288 | 289 | },
|
| 290 | + { |
| 291 | + "cell_type": "code", |
| 292 | + "execution_count": null, |
| 293 | + "id": "412b4cd2", |
| 294 | + "metadata": {}, |
| 295 | + "outputs": [], |
| 296 | + "source": [ |
| 297 | + "#|export\n", |
| 298 | + "@call_parse\n", |
| 299 | + "@delegates(nb_export, but=['procs', 'mod_maker'])\n", |
| 300 | + "def nb_export_cli(nbname, lib_path, name, debug:Param(\"debug flag\", store_true), **kwargs): \n", |
| 301 | + " \"Export a single nbdev notebook to a python script.\"\n", |
| 302 | + " return nb_export(nbname=nbname, lib_path=lib_path, name=name, debug=debug, **kwargs)" |
| 303 | + ] |
| 304 | + }, |
289 | 305 | {
|
290 | 306 | "cell_type": "code",
|
291 | 307 | "execution_count": null,
|
|
332 | 348 | "name": "stdout",
|
333 | 349 | "output_type": "stream",
|
334 | 350 | "text": [
|
335 |
| - "\u001b[1m\u001b[94mnbdev_bump_version\u001b[0m Increment version in settings.ini by one\n", |
336 |
| - "\u001b[1m\u001b[94mnbdev_changelog\u001b[0m Create a CHANGELOG.md file from closed and labeled GitHub issues\n", |
337 |
| - "\u001b[1m\u001b[94mnbdev_clean\u001b[0m Clean all notebooks in `fname` to avoid merge conflicts\n", |
338 |
| - "\u001b[1m\u001b[94mnbdev_conda\u001b[0m Create a `meta.yaml` file ready to be built into a package, and optionally build and upload it\n", |
339 |
| - "\u001b[1m\u001b[94mnbdev_create_config\u001b[0m Create a config file.\n", |
340 |
| - "\u001b[1m\u001b[94mnbdev_docs\u001b[0m Create Quarto docs and README.md\n", |
341 |
| - "\u001b[1m\u001b[94mnbdev_export\u001b[0m Export notebooks in `path` to Python modules\n", |
342 |
| - "\u001b[1m\u001b[94mnbdev_filter\u001b[0m A notebook filter for Quarto\n", |
343 |
| - "\u001b[1m\u001b[94mnbdev_fix\u001b[0m Create working notebook from conflicted notebook `nbname`\n", |
344 |
| - "\u001b[1m\u001b[94mnbdev_help\u001b[0m Show help for all console scripts\n", |
345 |
| - "\u001b[1m\u001b[94mnbdev_install\u001b[0m Install Quarto and the current library\n", |
346 |
| - "\u001b[1m\u001b[94mnbdev_install_hooks\u001b[0m Install Jupyter and git hooks to automatically clean, trust, and fix merge conflicts in notebooks\n", |
347 |
| - "\u001b[1m\u001b[94mnbdev_install_quarto\u001b[0m Install latest Quarto on macOS or Linux, prints instructions for Windows\n", |
348 |
| - "\u001b[1m\u001b[94mnbdev_merge\u001b[0m Git merge driver for notebooks\n", |
349 |
| - "\u001b[1m\u001b[94mnbdev_migrate\u001b[0m Convert all markdown and notebook files in `path` from v1 to v2\n", |
350 |
| - "\u001b[1m\u001b[94mnbdev_new\u001b[0m Create an nbdev project.\n", |
351 |
| - "\u001b[1m\u001b[94mnbdev_prepare\u001b[0m Export, test, and clean notebooks, and render README if needed\n", |
352 |
| - "\u001b[1m\u001b[94mnbdev_preview\u001b[0m Preview docs locally\n", |
353 |
| - "\u001b[1m\u001b[94mnbdev_proc_nbs\u001b[0m Process notebooks in `path` for docs rendering\n", |
354 |
| - "\u001b[1m\u001b[94mnbdev_pypi\u001b[0m Create and upload Python package to PyPI\n", |
355 |
| - "\u001b[1m\u001b[94mnbdev_readme\u001b[0m None\n", |
356 |
| - "\u001b[1m\u001b[94mnbdev_release_both\u001b[0m Release both conda and PyPI packages\n", |
357 |
| - "\u001b[1m\u001b[94mnbdev_release_gh\u001b[0m Calls `nbdev_changelog`, lets you edit the result, then pushes to git and calls `nbdev_release_git`\n", |
358 |
| - "\u001b[1m\u001b[94mnbdev_release_git\u001b[0m Tag and create a release in GitHub for the current version\n", |
359 |
| - "\u001b[1m\u001b[94mnbdev_sidebar\u001b[0m Create sidebar.yml\n", |
360 |
| - "\u001b[1m\u001b[94mnbdev_test\u001b[0m Test in parallel notebooks matching `path`, passing along `flags`\n", |
361 |
| - "\u001b[1m\u001b[94mnbdev_trust\u001b[0m Trust notebooks matching `fname`\n", |
362 |
| - "\u001b[1m\u001b[94mnbdev_update\u001b[0m Propagate change in modules matching `fname` to notebooks that created them\n" |
| 351 | + "\u001b[1m\u001b[94mnb_export\u001b[22m\u001b[39m Export a single nbdev notebook to a python script.\n", |
| 352 | + "\u001b[1m\u001b[94mnbdev_bump_version\u001b[22m\u001b[39m Increment version in settings.ini by one\n", |
| 353 | + "\u001b[1m\u001b[94mnbdev_changelog\u001b[22m\u001b[39m Create a CHANGELOG.md file from closed and labeled GitHub issues\n", |
| 354 | + "\u001b[1m\u001b[94mnbdev_clean\u001b[22m\u001b[39m Clean all notebooks in `fname` to avoid merge conflicts\n", |
| 355 | + "\u001b[1m\u001b[94mnbdev_conda\u001b[22m\u001b[39m Create a `meta.yaml` file ready to be built into a package, and optionally build and upload it\n", |
| 356 | + "\u001b[1m\u001b[94mnbdev_create_config\u001b[22m\u001b[39m Create a config file.\n", |
| 357 | + "\u001b[1m\u001b[94mnbdev_docs\u001b[22m\u001b[39m Create Quarto docs and README.md\n", |
| 358 | + "\u001b[1m\u001b[94mnbdev_export\u001b[22m\u001b[39m Export notebooks in `path` to Python modules\n", |
| 359 | + "\u001b[1m\u001b[94mnbdev_filter\u001b[22m\u001b[39m A notebook filter for Quarto\n", |
| 360 | + "\u001b[1m\u001b[94mnbdev_fix\u001b[22m\u001b[39m Create working notebook from conflicted notebook `nbname`\n", |
| 361 | + "\u001b[1m\u001b[94mnbdev_help\u001b[22m\u001b[39m Show help for all console scripts\n", |
| 362 | + "\u001b[1m\u001b[94mnbdev_install\u001b[22m\u001b[39m Install Quarto and the current library\n", |
| 363 | + "\u001b[1m\u001b[94mnbdev_install_hooks\u001b[22m\u001b[39m Install Jupyter and git hooks to automatically clean, trust, and fix merge conflicts in notebooks\n", |
| 364 | + "\u001b[1m\u001b[94mnbdev_install_quarto\u001b[22m\u001b[39m Install latest Quarto on macOS or Linux, prints instructions for Windows\n", |
| 365 | + "\u001b[1m\u001b[94mnbdev_merge\u001b[22m\u001b[39m Git merge driver for notebooks\n", |
| 366 | + "\u001b[1m\u001b[94mnbdev_migrate\u001b[22m\u001b[39m Convert all markdown and notebook files in `path` from v1 to v2\n", |
| 367 | + "\u001b[1m\u001b[94mnbdev_new\u001b[22m\u001b[39m Create an nbdev project.\n", |
| 368 | + "\u001b[1m\u001b[94mnbdev_prepare\u001b[22m\u001b[39m Export, test, and clean notebooks, and render README if needed\n", |
| 369 | + "\u001b[1m\u001b[94mnbdev_preview\u001b[22m\u001b[39m Preview docs locally\n", |
| 370 | + "\u001b[1m\u001b[94mnbdev_proc_nbs\u001b[22m\u001b[39m Process notebooks in `path` for docs rendering\n", |
| 371 | + "\u001b[1m\u001b[94mnbdev_pypi\u001b[22m\u001b[39m Create and upload Python package to PyPI\n", |
| 372 | + "\u001b[1m\u001b[94mnbdev_readme\u001b[22m\u001b[39m Create README.md from readme_nb (index.ipynb by default)\n", |
| 373 | + "\u001b[1m\u001b[94mnbdev_release_both\u001b[22m\u001b[39m Release both conda and PyPI packages\n", |
| 374 | + "\u001b[1m\u001b[94mnbdev_release_gh\u001b[22m\u001b[39m Calls `nbdev_changelog`, lets you edit the result, then pushes to git and calls `nbdev_release_git`\n", |
| 375 | + "\u001b[1m\u001b[94mnbdev_release_git\u001b[22m\u001b[39m Tag and create a release in GitHub for the current version\n", |
| 376 | + "\u001b[1m\u001b[94mnbdev_requirements\u001b[22m\u001b[39m Writes a `requirements.txt` file to `directory` based on settings.ini.\n", |
| 377 | + "\u001b[1m\u001b[94mnbdev_sidebar\u001b[22m\u001b[39m Create sidebar.yml\n", |
| 378 | + "\u001b[1m\u001b[94mnbdev_test\u001b[22m\u001b[39m Test in parallel notebooks matching `path`, passing along `flags`\n", |
| 379 | + "\u001b[1m\u001b[94mnbdev_trust\u001b[22m\u001b[39m Trust notebooks matching `fname`\n", |
| 380 | + "\u001b[1m\u001b[94mnbdev_update\u001b[22m\u001b[39m Propagate change in modules matching `fname` to notebooks that created them\n", |
| 381 | + "\u001b[1m\u001b[94mnbdev_update_license\u001b[22m\u001b[39m Allows you to update the license of your project.\n" |
363 | 382 | ]
|
364 | 383 | }
|
365 | 384 | ],
|
|
0 commit comments