WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

SetOptions [s,name1value1,name2value2,]

sets the specified default options for a symbol s.

SetOptions [stream,] or SetOptions ["name",]

sets options associated with a particular stream.

SetOptions [object,]

sets options associated with an external object such as a NotebookObject or CloudObject .

Details
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Properties & Relations  
Possible Issues  
See Also
Tech Notes
Related Guides
Related Workflows
Related Links
History
Cite this Page

SetOptions

SetOptions [s,name1value1,name2value2,]

sets the specified default options for a symbol s.

SetOptions [stream,] or SetOptions ["name",]

sets options associated with a particular stream.

SetOptions [object,]

sets options associated with an external object such as a NotebookObject or CloudObject .

Details

Examples

open all close all

Basic Examples  (1)

Change the style for plots to dashed curves:

Restore the system default:

Scope  (4)

Reset the default precision for HilbertMatrix :

Now HilbertMatrix uses machine numbers by default:

A specific option setting overrides the new default:

Restore the system default:

Start writing to a temporary file:

Set the page width to 10 characters:

Write Range [10] to the file and close the stream:

Line breaks occur at the 10th column:

Create a reference to the input cell:

Change the background of the cell to red:

Restore the setting of the cell, which will cause it to inherit from the notebook:

Change the Permissions of a CloudObject :

Properties & Relations  (2)

SetOptions can be used to modify protected symbols:

The option has been modified:

The symbol still has attribute Protected :

Restore the system default:

SetOptions resets the Permissions value entirely (except for the owner's permissions):

SetPermissions only resets the capabilities of the given user groups:

Possible Issues  (2)

SetOptions can only be used to change the default value of an option, not to add a new one:

Use AppendTo , PrependTo and similar functions to add additional options to a function:

For notebook options with rules, it can be awkward to make a targeted change to a specific rule:

CurrentValue provides a better way of adding or changing specific rules:

Tech Notes

History

Introduced in 1988 (1.0) | Updated in 1996 (3.0) 2012 (9.0)

Wolfram Research (1988), SetOptions, Wolfram Language function, https://reference.wolfram.com/language/ref/SetOptions.html (updated 2012).

Text

Wolfram Research (1988), SetOptions, Wolfram Language function, https://reference.wolfram.com/language/ref/SetOptions.html (updated 2012).

CMS

Wolfram Language. 1988. "SetOptions." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2012. https://reference.wolfram.com/language/ref/SetOptions.html.

APA

Wolfram Language. (1988). SetOptions. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SetOptions.html

BibTeX

@misc{reference.wolfram_2025_setoptions, author="Wolfram Research", title="{SetOptions}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/SetOptions.html}", note=[Accessed: 17-November-2025]}

BibLaTeX

@online{reference.wolfram_2025_setoptions, organization={Wolfram Research}, title={SetOptions}, year={2012}, url={https://reference.wolfram.com/language/ref/SetOptions.html}, note=[Accessed: 17-November-2025]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /