From a329326bed595bec57b7730f4472a289a7682b72 Mon Sep 17 00:00:00 2001 From: Dien-Hoa Date: Wed, 24 Jul 2024 20:33:06 +0200 Subject: [PATCH 1/2] fix old nb name --- nbs/api/01_config.ipynb | 13 +++++++++++-- nbs/api/02_maker.ipynb | 4 ++-- nbs/api/03_process.ipynb | 6 +++--- nbs/api/04_export.ipynb | 2 +- 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/nbs/api/01_config.ipynb b/nbs/api/01_config.ipynb index 6da2b94b5..5070fd3e4 100644 --- a/nbs/api/01_config.ipynb +++ b/nbs/api/01_config.ipynb @@ -209,7 +209,16 @@ "cell_type": "code", "execution_count": null, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "/home/dienhoa/miniconda3/envs/se/lib/python3.9/site-packages/ghapi/core.py:102: UserWarning: Neither GITHUB_TOKEN nor GITHUB_JWT_TOKEN found: running as unauthenticated\n", + " else: warn('Neither GITHUB_TOKEN nor GITHUB_JWT_TOKEN found: running as unauthenticated')\n" + ] + } + ], "source": [ "#|hide\n", "if os.getenv('GITHUB_ACTIONS') != 'true': # GITHUB_TOKEN in actions has limited scope.\n", @@ -796,7 +805,7 @@ "path = Path('../nbdev')\n", "(path/'config.py').unlink(missing_ok=True)\n", "\n", - "_basic_export_nb(\"config.ipynb\", 'config.py')\n", + "_basic_export_nb(\"01_config.ipynb\", 'config.py')\n", "\n", "g = exec_new('from nbdev import config')\n", "assert g['config'].add_init\n", diff --git a/nbs/api/02_maker.ipynb b/nbs/api/02_maker.ipynb index 515922ee5..76bf988fc 100644 --- a/nbs/api/02_maker.ipynb +++ b/nbs/api/02_maker.ipynb @@ -781,8 +781,8 @@ "add_init(path)\n", "cfg = get_config()\n", "\n", - "_basic_export_nb2('config.ipynb', 'config')\n", - "_basic_export_nb2('maker.ipynb', 'maker')\n", + "_basic_export_nb2('01_config.ipynb', 'config')\n", + "_basic_export_nb2('02_maker.ipynb', 'maker')\n", "\n", "g = exec_import('nbdev', 'maker')\n", "assert g['maker'].ModuleMaker\n", diff --git a/nbs/api/03_process.ipynb b/nbs/api/03_process.ipynb index d0f3702f1..6ae46e3dc 100644 --- a/nbs/api/03_process.ipynb +++ b/nbs/api/03_process.ipynb @@ -634,9 +634,9 @@ "source": [ "#|eval: false\n", "#|hide\n", - "_basic_export_nb2('config.ipynb', 'read')\n", - "_basic_export_nb2('maker.ipynb', 'maker')\n", - "_basic_export_nb2('process.ipynb', 'process')\n", + "_basic_export_nb2('01_config.ipynb', 'read')\n", + "_basic_export_nb2('02_maker.ipynb', 'maker')\n", + "_basic_export_nb2('03_process.ipynb', 'process')\n", "\n", "g = exec_new('import nbdev.process')\n", "assert hasattr(g['nbdev'].process, 'NBProcessor')" diff --git a/nbs/api/04_export.ipynb b/nbs/api/04_export.ipynb index b2587510f..0c92b3f42 100644 --- a/nbs/api/04_export.ipynb +++ b/nbs/api/04_export.ipynb @@ -331,7 +331,7 @@ "source": [ "#|eval: false\n", "Path('../nbdev/export.py').unlink(missing_ok=True)\n", - "nb_export('04a_export.ipynb')\n", + "nb_export('04_export.ipynb')\n", "\n", "g = exec_new('import nbdev.export')\n", "assert hasattr(g['nbdev'].export, 'nb_export')" From 39bb3ba32061af51ca9b3b8cb08f3e1e9a5a5a82 Mon Sep 17 00:00:00 2001 From: Dien-Hoa Date: Wed, 24 Jul 2024 20:46:10 +0200 Subject: [PATCH 2/2] clear cell output --- nbs/api/01_config.ipynb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/nbs/api/01_config.ipynb b/nbs/api/01_config.ipynb index 5070fd3e4..f4cd6d96e 100644 --- a/nbs/api/01_config.ipynb +++ b/nbs/api/01_config.ipynb @@ -209,16 +209,7 @@ "cell_type": "code", "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/home/dienhoa/miniconda3/envs/se/lib/python3.9/site-packages/ghapi/core.py:102: UserWarning: Neither GITHUB_TOKEN nor GITHUB_JWT_TOKEN found: running as unauthenticated\n", - " else: warn('Neither GITHUB_TOKEN nor GITHUB_JWT_TOKEN found: running as unauthenticated')\n" - ] - } - ], + "outputs": [], "source": [ "#|hide\n", "if os.getenv('GITHUB_ACTIONS') != 'true': # GITHUB_TOKEN in actions has limited scope.\n",