Skip to content

Commit 77919c7

Browse files
committed
fixes #1570
1 parent d84033a commit 77919c7

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

nbdev/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def _load_toml(p):
152152

153153
def _has_nbdev(p):
154154
"True if pyproject.toml at `p` has [tool.nbdev]"
155-
try: return bool(_load_toml(p).get('tool', {}).get('nbdev', {}))
155+
try: return _load_toml(p).get('tool', {}).get('nbdev') is not None
156156
except Exception: return False
157157

158158
def _find_nbdev_pyproject(path=None):

nbs/api/01_config.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@
332332
"\n",
333333
"def _has_nbdev(p):\n",
334334
" \"True if pyproject.toml at `p` has [tool.nbdev]\"\n",
335-
" try: return bool(_load_toml(p).get('tool', {}).get('nbdev', {}))\n",
335+
" try: return _load_toml(p).get('tool', {}).get('nbdev') is not None\n",
336336
" except Exception: return False\n",
337337
"\n",
338338
"def _find_nbdev_pyproject(path=None):\n",

nbs/api/16_migrate.ipynb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,10 +1552,7 @@
15521552
]
15531553
}
15541554
],
1555-
"metadata": {
1556-
"solveit_dialog_mode": "learning",
1557-
"solveit_ver": 2
1558-
},
1555+
"metadata": {},
15591556
"nbformat": 4,
15601557
"nbformat_minor": 5
15611558
}

0 commit comments

Comments
 (0)