Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exporting single notebook outside nbdev project #1489

Merged

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants