-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Feature: engine to convert ipynb to markdown (via jupytext) #42
Comments
keep this for later. Let's first focus on handling markdown files robustly. |
This is related to #61 |
@zkamvar , Just wanted to mention that we have done implementation of markdown to ipynb and vice versa is also in things to implement soon. After a bit of more testing and fixing little issues on GitHub Actions, will put a merge request :) |
OMG THANK YOU! I've seen the work and I am impressed with the solution you found! |
Will keep you posted on this :) |
To convert ipynb to RMarkdown, |
Thank you @milanmlft, I think that's a reasonable solution. I had not considered the fact that ipynb notebooks would store the results. This is not the same as the R Markdown solution, which dynamically renders the results, but it is better than the copy/paste methods lesson authors currently have. There are two challenges that remain:
|
The main open source option for nb diffs: https://nbdime.readthedocs.io/en/latest/ |
Hi all, I've been experimenting with setting up an R wrapper for jupytext and have come up with this: milanmlft/jupytextR. In theory, this should allow converting between any of the jupytext-supported file formats from within R. It's still in an experimental state, but would love to get your feedback on this and was wondering whether this might be useful for |
I apologise for the delay in my response. I realize that I never updated this particular issue: I believe that the myst format (and thus a jupytext engine) is not in scope for this project because there are significant departures from the pandoc markdown syntax that would make it difficult to support. The motivation for suggesting Jupytext came as a suggestion from one of the alpha testers before Quarto was a thing, but I had not dug deep enough into it when I updated this issue. |
Thanks for the feedback! Didn't realize the differences between Markdown format. We're currently using |
Summary
This comes from lessons learned from https://github.com/datacarpentry/astronomy-python/, where Allen Downey has prepared a script for converting from iPython notebooks to markdown.
Since we are using markdown as an intermediate to HTML it should be a matter of dropping in an engine that renders and converts a single jupyter notebook to markdown. The script can be called from the {processx} package.
Tasks
*.myst
notebook filesEdit: I'm changing this from ipynb based to myst notebook/jupytext based operations because ipynb format is not git-friendly even if github will render them.
The text was updated successfully, but these errors were encountered: