I made the following code that should recognize the image imported from the pc. If I do it for the first time it's fine, but if I load a second image it leaves me the name of the previous one. You could check the code and tell me where I'm wrong. Thanks for your help.

Row[{FileNameSetter[Dynamic[file]], Dynamic[file]}]
Button["Load file", im = Import[file]]
Row[{"Si tratta di un ", 
   Entity["Species", "Infraspecies:CanisLupusFamiliaris"]]}]
  • 1
    $\begingroup$ Please link your cross-posts so that others (1) don't have to do it for you and (2) can keep track of all prior responses. As it is, I am getting ready to start voting to close, since this request has been ignored several times now. $\endgroup$ – Daniel Lichtblau Jan 11 at 22:20
  • $\begingroup$ I do not know how to do. $\endgroup$ – Pasquale Jan 11 at 22:33
  • $\begingroup$ In order to link to cross-posts, do as follows: (1) In the second post, add a link (URL) to the first post. (2) Return to the first post, hid "edit", and add a link to the second post. For example, the link to this post is mathematica.stackexchange.com/questions/189326/… (there are ways to make shorter hot links but that is not a necessity). $\endgroup$ – Daniel Lichtblau Jan 12 at 16:52

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.