Skip to content

Conversation

@radekosmulski
Copy link
Contributor

To export a notebook to a .py file outside an nbdev project:

import nbdev
nbdev.export.nb_export('./example.ipynb', '.', solo_nb=True)

Key change: added solo_nb arg that propagates the intent through functionality involved in exported module generation.

Example:
image

To export a notebook to a .py file outside an nbdev project:
```
import nbdev
nbdev.export.nb_export('./example.ipynb', '.', solo_nb=True)
```

Key change: added `solo_nb` arg that propagates the intent through
functionality involved in exported module generation.
@jph00
Copy link
Contributor

jph00 commented Jan 31, 2025

Thank you! :D

@jph00 jph00 merged commit 63fe2b2 into AnswerDotAI:main Jan 31, 2025
10 checks passed
@hamelsmu hamelsmu added the enhancement New feature or request label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants