Skip to content

Conversation

@mwouts
Copy link

@mwouts mwouts commented Apr 20, 2022

This PR is not to be integrated ! It is just a proof of concept for the idea of substituing the nbdev export step with a bidirectional jupytext synchronisation between ipynb and py files, as discussed last week with @hamelsmu.

The PR has been generated with this command:

jupytext --from nbs///ipynb --to nbdoc///py:percent nbs/*.ipynb --format-options comment_out_non_nbdev_exported_cells=True

using the comment_out_non_nbdev_exported_cells branch of jupytext.

NB: I propose that we discuss this POC on the Jupytext repo, I'll open an issue there.

@hamelsmu
Copy link
Contributor

Thanks @mwouts ! I will play with this soon, thanks so much for putting this together!

@mwouts
Copy link
Author

mwouts commented Apr 20, 2022

You're welcome @hamelsmu - my pleasure!

Maybe we should start with a quick review of the Jupytext PR mwouts/jupytext#948, I have a few questions for you - and also I'd like to make sure that the new option works in the config file (i.e. that editing in Jupyter will update simulatenously the .ipynb and the .py file) before I let you play with it...

@hamelsmu
Copy link
Contributor

Maybe we should start with a quick review of the Jupytext PR mwouts/jupytext#948

Ok I will have time tomorrow to check this out. I am really excited by this

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