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

improvement - create paired notebook from command line #141

Closed
danieltomasz opened this issue Dec 12, 2018 · 5 comments
Closed

improvement - create paired notebook from command line #141

danieltomasz opened this issue Dec 12, 2018 · 5 comments
Milestone

Comments

@danieltomasz
Copy link

danieltomasz commented Dec 12, 2018

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 #129

@mwouts
Copy link
Owner

mwouts commented Dec 12, 2018

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?

@danieltomasz
Copy link
Author

danieltomasz commented Dec 13, 2018

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)

mwouts added a commit that referenced this issue Dec 15, 2018
mwouts added a commit that referenced this issue Jan 14, 2019
@mwouts mwouts added this to the v1.0.0 milestone Jan 15, 2019
mwouts added a commit that referenced this issue Jan 18, 2019
Simpler to use than the --update-metadata method #141
@mwouts
Copy link
Owner

mwouts commented Jan 18, 2019

@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 !

@mwouts
Copy link
Owner

mwouts commented Jan 29, 2019

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.

@danieltomasz
Copy link
Author

yes!

@mwouts mwouts closed this as completed Feb 5, 2019
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

No branches or pull requests

2 participants