My 2p: going to an off-ecosystem rarely used tool because of a feature you like that is indeed better, rather than sticking with a slightly worse but well used tool that is at the centre of a large user community is almost never right.
-- Dr James Hetherington FBCS Director of Research Engineering The Alan Turing Institute From: Discuss <discuss-boun...@lists.software-carpentry.org> on behalf of Raniere Silva <rani...@rgaiacs.com> Date: Tuesday, 15 May 2018 at 16:50 To: Pariksheet Nanda <pariksheet.na...@uconn.edu> Cc: Software Carpentry Discussion <discuss@lists.software-carpentry.org> Subject: Re: [Discuss] Should we use reticulate? Actually, you can cleanly commit changes to Jupyter notebooks have beautiful diffs using the nbstripout python package. I didn't know the package. Thanks for it. But we I'm talking about doing things directly on GitHub web interface. So far, any diff on GitHub pull request view will be something like https://github.com/omsai/intein_finder/commit/83536bacebcc6119ec08cb09e986c6966790786e which is hard to read given the JSON structure. Can you elaborate a little on #3 about nesting cells? > ## Challenge: Can you do it? > > What is the output of this command? > > ``` > paste("This", "new", "template", "looks", "good") > ``` > > > ## Solution > > > > ``` > > paste("This", "new", "template", "looks", "good") > > ``` > {: .solution} {: .challenge} is how we write challenges at the moment. Please note that we have some code inside the blockquote and we want that code chunk to be processed by reticulate (or Jupyter, to reply your question). In R Markdown, the previous example is valid and all the code blocks can be executed and will received their output in the final HTML. Unfortunately, is not possible to have a code cell inside a Markdown cell in Jupyter, something like { "cell_type": "markdown", "metadata": {}, "source": [ "> ## Challenge: Can you do it?\n", ">\n", "> What is the output of this command?", { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "paste("This", "new", "template", "looks", "good")\n", ] } ] } but this isn't a valid cell because you have a cell inside another one. Raniere
_______________________________________________ Discuss mailing list Discuss@lists.software-carpentry.org http://lists.software-carpentry.org/listinfo/discuss