[IPython-dev] %%markdown or %loadmarkdown ?

Matthias Bussonnier bussonniermatthias at gmail.com
Fri Jul 18 13:29:37 EDT 2014


Le 13 juil. 2014 à 22:27, Mark Bakker a écrit :

> I was wondering whether there is something like a %% markdown magic that changes a code cell to markdown.

Magics are kernel-side function, and the kernel does not know about the frontend.
THe only thing the kernel can say is :

"hey, put that in place where the user will type next" no more no less. 
%%laodmarkdown is thus not possible though you can write something that **display** markdown, but does not put it in the input of a cell. 

-- 
M

> 
> I want to use this with the %load command. So actually, a %loadmarkdown would be even better
> 
> Usage: In class assignments I want the students to load exercises (written in markdown) from a server.
> 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.
> 
> And I think others will find use for such functionality.
> 
> Thanks,
> 
> Mark
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev




More information about the IPython-dev mailing list