<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 13 July 2014 13:27, Mark Bakker <span dir="ltr"><<a href="mailto:markbak@gmail.com" target="_blank">markbak@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">I was wondering whether there is something like a %% markdown magic that changes a code cell to markdown.</div></blockquote><div><br></div><div>There isn't, and it doesn't really make sense in our model. Magics change how code is executed, while code cells vs. markdown cells is part of the notebook document structure. The kernel, which executes the code, doesn't know about the document.<br>

</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div>I want to use this with the %load command. So actually, a %loadmarkdown would be even better<br>

</div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
<div><br></div><div>Usage: In class assignments I want the students to load exercises (written in markdown) from a server.</div><div>Sure, I can let them do a %load and then manually change the cell to markdown, but it would be much nicer if it changes automatically.</div>

</div></blockquote></div><br></div><div class="gmail_extra">I think the more common way of doing this is to provide the students with notebooks which describe the exercises, and leave blank cells where they fill in their answers. It would be possible to write a %loadmarkdown magic, but it feels like the wrong approach - the notebook is built around the idea of separating the document structure from code execution.<br>

<br></div><div class="gmail_extra">Thomas<br></div></div>