Maybe it possible to pair by default new notebook created from python file (or using using flag )?
By default newly created notebook is not paired (on my 0.8.6).
Now every time I need to edit notebook metadata.
I have in mind something else than https://github.com/mwouts/jupytext/issues/129
Hello @danieltomasz , thanks for asking.
We could allow setting custom notebook metadata in the notebook, would that be ok for you? - say for instance:
jupytext --to ipynb --metadata '{"jupytext":{"formats":"ipynb,py:light"}}' script.py
Also, may I ask what is not good for your use case with the default pairing in #129? I am asking as working with paired notebooks do require Jupytext's content manager anyway, right?
the described way to setting custom metadata in notebook is really good for me and solve the problem!
(most of the cases the default pairing is ok, but there some special cases: for example I have several specific markdown files and I want to start notebooks from them but I dont want default pairing for .md)
@danieltomasz , just to let you know: I have also implemented a --set-formats argument in the CLI, in preparation for v1.0. I think that's the main use case, and it's a bit simpler than --update-metadata !
Hello @danieltomasz , the RC for Jupytext 1.0 is available with pip install jupytext --pre --upgrade. Would you like to give it a try? The CLI has many new arguments, including the --set-formats one, see the release notes.
yes!
Most helpful comment
@danieltomasz , just to let you know: I have also implemented a
--set-formatsargument in the CLI, in preparation for v1.0. I think that's the main use case, and it's a bit simpler than--update-metadata!