Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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"] – Dr. belisarius Sep 13 '12 at 23:05
What additional features to this: 100127 are you looking for? Probably an automatic images uploading, right? – Kuba Nov 24 '15 at 8:01
@Kuba This was the first question I posted on SE and something many people seem to have considered then and since but alas still no ongoing solution. Your initial stab is already v. handy though - I've made some comments at your Markdown answer. – Ronald Monson Jan 1 at 8:23

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.