nbdev icon indicating copy to clipboard operation
nbdev copied to clipboard

Feature: add support for .py files in py:percent format

Open lukastk opened this issue 6 months ago • 2 comments

  • Introduces the ability to handle .py files as py:percent files within nbdev.
    • Does this by converting .py files to .ipynb format as an intermediate step in NBProcessor.__init__
  • Added example of usage in 'nbs/api/04_export.ipynb'.

Can export all *.py files by running nbdev_export --file_glob '*.py'

See https://jupytext.readthedocs.io/en/latest/formats-scripts.html for info on the py:percent format.

lukastk avatar Aug 22 '24 15:08 lukastk