IncludeDefinitions

IncludeDefinitions

is an option for cloud and other functions that specifies whether current definitions relevant for the evaluation of an expression should be explicitly included when the expression is deployed.

Details

Examples

open allclose all

Basic Examples  (3)

By default, definitions are included:

Do not include definitions from the current kernel session, but load them from a cloud object at the time they are needed:

CloudEvaluate also supports IncludeDefinitions. Compare the behavior of including definitions or not:

Scope  (2)

For CloudPut, definitions are not included by default:

Include definitions associated with the expression:

Applications  (1)

Make a simple web application generating the color bands and values:

Properties & Relations  (1)

Use FilePrint to see the definitions that were included:

Possible Issues  (2)

When no definitions are associated with a symbol, IncludeDefinitions set to True copies over empty definitions, thus overwriting the ones defined in initialization files:

Set IncludeDefinitions to False in order to avoid overwriting any definitions from initialization files:

Wolfram Research (2019), IncludeDefinitions, Wolfram Language function, https://reference.wolfram.com/language/ref/IncludeDefinitions.html.

Text

Wolfram Research (2019), IncludeDefinitions, Wolfram Language function, https://reference.wolfram.com/language/ref/IncludeDefinitions.html.

CMS

Wolfram Language. 2019. "IncludeDefinitions." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/IncludeDefinitions.html.

APA

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

BibTeX

@misc{reference.wolfram_2024_includedefinitions, author="Wolfram Research", title="{IncludeDefinitions}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/IncludeDefinitions.html}", note=[Accessed: 10-October-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_includedefinitions, organization={Wolfram Research}, title={IncludeDefinitions}, year={2019}, url={https://reference.wolfram.com/language/ref/IncludeDefinitions.html}, note=[Accessed: 10-October-2024 ]}