Sign up ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

This post discusses how to streamline the other way - extracting code from a fragmented and longish SE answer but I imagine a two-way workflow like:

Fashion an answer/question in an SE-templated notebook with a submit button that converts both text/input cells into their SE equivalents. The notebook could also be effectively uploaded to SE by having the conversion include a link back to a public repository to which the original notebook is also sent.

share|improve this question
There isn't a convenient/standardized way yet, but see a couple of ideas that Sjoerd and belisarius have been toying with here to attach a notebook as a gif (not convert to SE style) – R. M. Sep 13 '12 at 22:39
I was also thinking about it, and this was one of the reasons I started the code formatter project, since appropriate code formatting is one of the essential parts. I have it high on my todo list to debug the current formatter and adopt it to SE format, and in general I think we are coming closer to the point when we accumulate enough tools to make such thing possible. – Leonid Shifrin Sep 13 '12 at 23:04
Try this NotebookPut@ ImportString[ Uncompress@ FromCharacterCode@ TakeWhile[ Flatten@ImageData[Import[""], "Byte"], # != 0 &], "NB"] – belisarius has settled Sep 13 '12 at 23:05
What additional features to this: 100127 are you looking for? Probably an automatic images uploading, right? – Kuba yesterday

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.