Skip to content

Commit

Permalink
Merge pull request #1062 from seeM/default-macos-friendly-migration
Browse files Browse the repository at this point in the history
  • Loading branch information
hamelsmu authored Sep 15, 2022
2 parents e26cbe5 + a590c2c commit 83124e6
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions nbs/migrating.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,11 @@
"A number of directives have changed names. We'll use `perl` to fix them. Run these lines in the root of your repo:\n",
"\n",
"```bash\n",
"[[ $SHELL = *bash ]] && shopt -s globstar\n",
"\n",
"perl -pi -e 's/#\\|\\s*hide_input/#| echo: false/' **/*.ipynb\n",
"perl -pi -e 's/#\\|\\s*hide_output/#| output: false/' **/*.ipynb\n",
"perl -pi -e 's/#\\|\\s*skip/#| eval: false/' **/*.ipynb\n",
"perl -pi -e 's/from nbdev.export import notebook2script/from nbdev import nbdev_export/' **/*.ipynb\n",
"perl -pi -e 's/notebook2script/nbdev_export/' **/*.ipynb\n",
"find . -name '*.ipynb' -exec perl -pi -e 's/#\\|\\s*hide_input/#| echo: false/' {} +\n",
"find . -name '*.ipynb' -exec perl -pi -e 's/#\\|\\s*hide_output/#| output: false/' {} +\n",
"find . -name '*.ipynb' -exec perl -pi -e 's/#\\|\\s*skip/#| eval: false/' {} +\n",
"find . -name '*.ipynb' -exec perl -pi -e 's/from nbdev.export import notebook2script/from nbdev import nbdev_export/' {} +\n",
"find . -name '*.ipynb' -exec perl -pi -e 's/notebook2script/nbdev_export/' {} +\n",
"```\n",
"\n",
"These change the following directives to use functionality built into Quarto:\n",
Expand Down

0 comments on commit 83124e6

Please sign in to comment.