Interactive

Interactive

is an option that specifies whether a function should create a user prompt when mimicking an action that would have created a user prompt if invoked manually.

Details

  • The user prompt invoked varies from function to function. For example, NotebookPrint would invoke a prompt to select a printer, while NotebookSave would invoke a prompt to select a file name.
  • Setting Interactive->True may not guarantee a user prompt will appear. For example, a user prompt only appears with NotebookClose if the Wolfram System detects that changes to the notebook may be lost, and would normally prompt the user to save the notebook or lose the changes.
  • If Interactive->True causes a user prompt to appear, then the function will fail if the user cancels the prompt.

Examples

Basic Examples  (1)

Create a sample notebook:

Edit the sample notebook:

Using Interactive->True shows a prompt before closing the notebook:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_interactive, organization={Wolfram Research}, title={Interactive}, year={2012}, url={https://reference.wolfram.com/language/ref/Interactive.html}, note=[Accessed: 08-October-2024 ]}