deathbeds / importnb

notebook files as source
https://importnb.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
68 stars 5 forks source link

[Feature Request] Ignore cell magics #119

Closed davidleejy closed 2 years ago

davidleejy commented 2 years ago

Importing a .ipynb containing cell magic (statements prefixed with %) into a .py file raises an exception; the cell magic isn't recognized. No errors are raised when importing into a .ipynb file.

tonyfast commented 2 years ago

thanks for this feature request. i'm going to work on implementing this soon.

this feature fits importnb because there is pure python that doesn't require IPython. since magics require IPython we'll add this feature as work around.