({{, (RefLink[UsingFrontEnd, paclet:ref/UsingFrontEnd])[expr] 
evaluates expr, making use of a front end if necessary.}})

OpenersNotesSection(Spacer1)Details

(RefLink[UsingFrontEnd, paclet:ref/UsingFrontEnd]) is primarily relevant for standalone kernels and other configurations where a front end cannot be assumed to be running.

(RefLink[UsingFrontEnd, paclet:ref/UsingFrontEnd])[expr] enables notebook functions such as (RefLink[NotebookWrite, paclet:ref/NotebookWrite]) during the evaluation of expr.

(RefLink[UsingFrontEnd, paclet:ref/UsingFrontEnd])[expr] evaluates expr in the current Wolfram Language kernel, starting a front end if it is not already running.

(RefLink[UsingFrontEnd, paclet:ref/UsingFrontEnd]) temporarily sets (RefLink[$Notebooks, paclet:ref/$Notebooks]) and (RefLink[$FrontEnd, paclet:ref/$FrontEnd]).

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[FrontEndExecute, paclet:ref/FrontEndExecute])  ▪  (RefLink[$FrontEnd, paclet:ref/$FrontEnd])  ▪  (RefLink[$Notebooks, paclet:ref/$Notebooks])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Standalone Wolfram Language Kernels, paclet:guide/StandaloneWolframLanguageKernels])}, {▪(RefLinkPlain[Programmatic Notebook & Interface Customization, paclet:guide/ProgrammaticNotebookAndInterfaceCustomization])}})}})