From 3534cfefe10776c79a87aac5e3eeae14852305d2 Mon Sep 17 00:00:00 2001 From: Kevin Bird Date: Sat, 21 Oct 2023 23:20:54 -0500 Subject: [PATCH 1/2] add parenthesis --- nbdev/serve.py | 2 +- nbs/api/17_serve.ipynb | 34 +++++++++++++++++++++++----------- 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/nbdev/serve.py b/nbdev/serve.py index 4038ee522..75cfe8e4c 100644 --- a/nbdev/serve.py +++ b/nbdev/serve.py @@ -70,7 +70,7 @@ def proc_nbs( chk_mtime = max(cfg.config_file.stat().st_mtime, Path(__file__).stat().st_mtime) cache.mkdir(parents=True, exist_ok=True) cache_mtime = cache.stat().st_mtime - if force or (cache.exists and cache_mtime Date: Sat, 21 Oct 2023 23:55:24 -0500 Subject: [PATCH 2/2] cleaned nb --- nbs/api/17_serve.ipynb | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/nbs/api/17_serve.ipynb b/nbs/api/17_serve.ipynb index 58ebb597e..16d93d085 100644 --- a/nbs/api/17_serve.ipynb +++ b/nbs/api/17_serve.ipynb @@ -13,7 +13,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "id": "f305fea5", "metadata": {}, "outputs": [], @@ -23,7 +23,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "id": "6899a335", "metadata": {}, "outputs": [], @@ -45,7 +45,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "id": "32c11e55", "metadata": {}, "outputs": [], @@ -56,7 +56,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "id": "65766a33", "metadata": {}, "outputs": [], @@ -79,7 +79,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "id": "abc3835a", "metadata": {}, "outputs": [], @@ -104,7 +104,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "id": "8b3b08f7", "metadata": {}, "outputs": [], @@ -120,7 +120,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "id": "14463227", "metadata": {}, "outputs": [], @@ -157,7 +157,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": null, "id": "1745c2c3", "metadata": {}, "outputs": [], @@ -176,7 +176,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": null, "id": "04dd6d30", "metadata": {}, "outputs": [], @@ -196,21 +196,9 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3 (ipykernel)", + "display_name": "python3", "language": "python", "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.10.12" } }, "nbformat": 4,