10

The first basic example in the documentation of SparseArray:

s = SparseArray[{{1, 1} -> 1, {2, 2} -> 2, {3, 3} -> 3, {1, 3} -> 4}]

when executed and saved in a notebook triggers the following warning when that notebook is reopened: "This file contains potentially unsafe dynamic content." Apparently this is true of every notebook that contains a (computed) sparse array.

Is there a reason for keeping users of sparse arrays in a high state of alert?

Edited to Add: A screenshot for the skeptics:

enter image description here

Edited to Add 2: This document was saved to "/Users/grant/Desktop". Saving a copy to "/Users/grant/Documents" produced a document without the warning. Apparently desktops are unsafe.

J. M.'s missing motivation
  • 124,525
  • 11
  • 401
  • 574
Chris Grant
  • 103
  • 4

1 Answers1

14

In version 10 Wolfram introduced some dynamic panels in output objects. These are intended to provide some useful brief information (I guess) about what is stored.

enter image description here

Because these panels are dynamic they trigger an unsafe dynamic content warning if the notebook is not in a trusted path. I prefer to switch this dynamic panelling off, which you can do by setting this system option:

SetSystemOptions["TypesetOptions" -> "IconicElidedForms" -> False]

When you do that the dynamic panel no longer appears in the output and consequently you do not get any unsafe dynamic content warnings.

enter image description here

Mike Honeychurch
  • 37,541
  • 3
  • 85
  • 158
  • 3
    +1 for the SetSystemOptions. These dyanmic panels are a nightmare on the Raspberry Pi version. If no one objects, I think it is worthwhile to include the RPi tag for future visitors trying to optimize the FE on that system. – bobthechemist Jan 28 '15 at 21:04