-
Notifications
You must be signed in to change notification settings - Fork 391
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
Clarify improvements / differences from nbconvert #107
Comments
Hello @choldgraf , thanks for asking! As you state, There are two ways you can use
A few more comments:
|
@mwouts very cool - thanks for the explanation :-) A couple quick questions:
|
Thanks @choldgraf for the feedback! Let me try to answer your questions...
I am not sure! Jupytext has very few dependencies. And its code is about 3k lines. Do you quantify that as light?
Well, Jupytext only focuses on reading/writing notebooks. The contents manager (i.e. the plugin for Jupyter) is just one file (389 lines). There is no server within Jupytext.
I see! You're right. The first markdown cell should be exported as a docstring. To achieve this, we would just need to add a cell metadata 'cell_marker' equal to |
@choldgraf , on the branch 0.8.4 the first markdown cell is now exported as a docstring. Is this better? Please also let me know if you see how to mark the YAML header so that Sphinx will ignore it. |
A few improvements, including the doctring for the first cell, are available in a pre-release version:
The YAML header will not be created if an option is set on Jupytext's content manager, cf. the documentation. @choldgraf , I will close this issue as I think we've answered your questions here. Please let me know if you have other questions! |
hey - just saw that I hadn't responded before, my bad! re: the YAML header, I don't think there's any way to get sphinx to ignore it unfortunately, so it'd have to be done with some kind of post-processing if it isn't possible to control with jupytext :-/ I'll take a stab at using this when I have a moment and maybe can make some PRs! |
Sure, I will be glad to receive your pull request, they are welcome! In the 0.8.4 release candidate Jupytext does have the option to not generate the YAML header (this is documented on the README). Still I am sure you will find room for more improvements... Let me know! |
It seems like you're one step ahead of me here 😊 |
This looks like a really interesting project! One question I've been trying to figure out is "how is this different from nbconvert?" It seems like they have partially overlapping functionality, so I'm curious how you see these two projects differentiating one another.
The text was updated successfully, but these errors were encountered: