Skip to content

Instantly share code, notes, and snippets.

@smhr
Last active March 1, 2023 03:04
Show Gist options
  • Save smhr/75790a2b74f8f3d1c4f4c5cefafc5a7c to your computer and use it in GitHub Desktop.
Save smhr/75790a2b74f8f3d1c4f4c5cefafc5a7c to your computer and use it in GitHub Desktop.
Convert all markdown files to ipynb notebook using jupytext
jupytext --set-formats ipynb,md --sync ./first_test.ipynb ## sync a notebook with md
jupytext --to ipynb first_test.md ## make notebook from md
find . -type f -name "*.md" | xargs jupytext --to ipynb ## find all md files in the current dir and make their notebooks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment