In Mathematica 11.3 we have the new Iconize function. Say I create an iconized image grabbed from the web, like this:
hawkings = WebImageSearch["Stephen Hawking", "MaxItems" -> 5];
pic = Iconize[URLExecute[hawkings[[3]]["ImageHyperlink"]], "Stephen Hawking"]
If I now evaluate input such as...
Evaluate[the-actual-icon]
... where the-actual-icon is the icon just created, then I'll get the image as output. However, if I evaluate instead...
Evaluate[pic]
...then I just get the icon object again, not the actual image.
How can I get the image by using the name pic for the icon rather than the iconized object itself?
IconizedObjectexpression is displayed as an "icon", but then that "icon" is re-interpreted as the "contents" (first argument) of theIconizedObject. – Szabolcs Mar 15 '18 at 21:48Deferworks like this too.x = Defer[1+1]has headDefer, but it is diplayed as1+1on-screen, and re-interpreted simply as1+1.Interpretationallows you to build such things yourself. Summary boxes are another example (their displayed form may or may not contain the full expression they stand for, depending on the storage space needed) – Szabolcs Mar 15 '18 at 21:51Deferall the time, and don't understand the difference between it andHoldForm. Personally I loveIconizeand I'm glad that this was implemented. – Szabolcs Mar 15 '18 at 21:53Iconizebe given some option to build an explicit box-representation (i.e. just pre-apply theDisplayFunctionand wrap inInterpretation)? Then anyIconizeboxes built in 11.3 would work fine in 11.2. – b3m2a1 Mar 16 '18 at 19:22Iconizeinto my understanding of the Wolfram Language. (I do understand what it does, and in particular the difference between storing an object in the notebook itself and storing the object in memory during the kernel session.) I guess my question concerns what other things in the Wolfram Language (and Mathematica) cannot usefully be assigned to names? – murray Mar 16 '18 at 20:19IconizeDocumentation Center page an explanation that the iconized object is stored in the notebook and hence immediately available whenever that notebook is opened again in a new kernel session? – murray Mar 16 '18 at 20:20Cell[StyleData["IconizedObject"],TemplateBoxOptions->{DisplayFunction->(RowBox[{ "IconizedObject", "[", RowBox[{#2,",",#3}], "]" }]&)}, MenuSortingValue->10000]– Itai Seggev Mar 16 '18 at 22:55Corein a version specific way by putting a"Core.nb"stylesheet in a paclet with"MathematicaVersion"->"11.2"in the stylesheets directory? Is it special somehow? Also I'm guess you can answer this one if you have the time. – b3m2a1 Mar 16 '18 at 23:19Iconizestores the object in the notebook, why doesn't the documentation say so?? – murray Mar 17 '18 at 00:38FindFileOnPath. I was more imagining that you'd place the patch in"Default.nb"as that's what most end-users seem to build off of, which would be less of an issue, but obviously that's not entirely satisfying. – b3m2a1 Mar 20 '18 at 00:11pts = Iconize[RandomReal[{0,1},2000]Then shouldn't I expectMean[pts]to work? Instead I getMean[(*iconized object*)]– Craig Carter Feb 15 '22 at 16:55