Skip to content

Commit 2a4fb11

Browse files
authored
Merge pull request #231 from PyAutoLabs/claude/howtolens-tutorial-restructure-f19y9d
Fix uncomment_jupyter_magic to match all auto* setup_notebook import forms
2 parents 6d5d608 + 596967e commit 2a4fb11

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

autohands/build_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ def uncomment_jupyter_magic(f):
201201
with open(f, "w") as sources:
202202
for line in lines:
203203
line = re.sub(
204-
r"# from autonerves import setup_notebook; setup_notebook\(\)",
205-
"from autonerves import setup_notebook; setup_notebook()",
204+
r"# from (auto\w+) import setup_notebook; setup_notebook\(\)",
205+
r"from \1 import setup_notebook; setup_notebook()",
206206
line,
207207
)
208208
sources.write(line)

0 commit comments

Comments
 (0)