17
$\begingroup$

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.

$\endgroup$
5
  • 1
    $\begingroup$ 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) $\endgroup$
    – rm -rf
    Commented Sep 13, 2012 at 22:39
  • 2
    $\begingroup$ 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. $\endgroup$ Commented Sep 13, 2012 at 23:04
  • 1
    $\begingroup$ Try this NotebookPut@ ImportString[ Uncompress@ FromCharacterCode@ TakeWhile[ Flatten@ImageData[Import["https://i.sstatic.net/mV4FJ.png"], "Byte"], # != 0 &], "NB"] $\endgroup$ Commented Sep 13, 2012 at 23:05
  • $\begingroup$ What additional features to this: 100127 are you looking for? Probably an automatic images uploading, right? $\endgroup$
    – Kuba
    Commented Nov 24, 2015 at 8:01
  • $\begingroup$ @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. $\endgroup$ Commented Jan 1, 2016 at 8:23

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.