Skip to content
This repository has been archived by the owner on Jan 3, 2018. It is now read-only.

Modify build process to turn Jupyter Notebooks into Markdown with trailing styles #278

Closed
gvwilson opened this issue Jun 25, 2015 · 4 comments

Comments

@gvwilson
Copy link
Contributor

In order to convert from Pandoc to Jekyll, we need our build process to generate plain old Markdown with trailing style specifications:

> ## title
> body
{: .style}

and similarly for code.

@aaren
Copy link
Contributor

aaren commented Jun 25, 2015

I could probably add a swc flag to notedown that generates the appropriate markdown from a notebook.

Something like

notedown lesson.ipynb --to markdown --swc > lesson.md

Then call it from the Makefile similar to how Rscript is called now.

You then have a notedown dependency, but it's a single pip install away. Thoughts?

@rgaiacs
Copy link
Contributor

rgaiacs commented Jun 25, 2015

@aaren Based on http://lists.software-carpentry.org/pipermail/discuss_lists.software-carpentry.org/2015-June/003127.html, can you wait a few days before start working on this?

You can restore the workflow from https://github.com/swcarpentry/bc/. Take a look at https://github.com/swcarpentry/bc/blob/gh-pages/Makefile for understand the workflow and make changes at https://github.com/swcarpentry/bc/blob/gh-pages/_templates/ipynb.tpl.

I'm OK using notedown but people prefer to use nbconvert just because it works out of the box.

@aaren
Copy link
Contributor

aaren commented Jun 25, 2015

@r-gaia-cs good point! I'd forgotten that notebook-> markdown was easy with nbconvert - that's a better solution. (notedown's main value is markdown -> notebook).

@gvwilson
Copy link
Contributor Author

Moved to carpentries/styles#53

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants