specifies the default source to be used for deployed cloud objects.
$SourceLink
specifies the default source to be used for deployed cloud objects.
Details
- The default setting for $SourceLink is Automatic.
- $SourceLink can take a cloud object that will be the source for all deployed cloud objects.
- $SourceLink=Automatic indicates that the source for the deployed cloud objects is to be the cloud object corresponding to the current notebook, if that exists.
- $SourceLink=None specifies that by default no source link should be given.
Examples
Basic Examples (1)
The default setting of $SourceLink is Automatic:
$SourceLinkIn the cloud notebook, the $EvaluationCloudObject automatically becomes the source for the deployed object:
[image]No source is given when evaluation is done in the Wolfram Language desktop:
obj = CloudDeploy[Manipulate[{n, Table[Prime[x], {x, n}]}, {n, 1, 100, 1}]]Options[obj, SourceLink]Change newly deployed cloud objects to always use a custom object as the default source:
$SourceLink = CloudObject["sine-phase-source.nb"];CloudDeploy[Manipulate[Plot[Sin[a x + b], {x, 0, 6}], {{a, 2, "Multiplier"}, 1, 4}, {{b, 0, "Phase Parameter"}, 0, 10}], "sine-plot"]Options[CloudObject["sine-plot"], SourceLink]See Also
Text
Wolfram Research (2016), $SourceLink, Wolfram Language function, https://reference.wolfram.com/language/ref/$SourceLink.html (updated 2019).
CMS
Wolfram Language. 2016. "$SourceLink." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/$SourceLink.html.
APA
Wolfram Language. (2016). $SourceLink. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$SourceLink.html
BibTeX
@misc{reference.wolfram_2026_$sourcelink, author="Wolfram Research", title="{$SourceLink}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/$SourceLink.html}", note=[Accessed: 15-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_$sourcelink, organization={Wolfram Research}, title={$SourceLink}, year={2019}, url={https://reference.wolfram.com/language/ref/$SourceLink.html}, note=[Accessed: 15-June-2026]}