WOLFRAM

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

InputNotebook []

gives the current notebook into which keyboard input in the front end will be directed.

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

InputNotebook []

gives the current notebook into which keyboard input in the front end will be directed.

Details

  • InputNotebook returns a NotebookObject .
  • If there is no current input notebook, InputNotebook [] will return $Failed .
  • The current input notebook is the notebook to which textual commands in the front end are normally directed.
  • A palette window can be a currently selected notebook but cannot normally be an input notebook.

Examples

open all close all

Basic Examples  (1)

Give the notebook object for the current input notebook:

Perform additional operations:

Properties & Relations  (1)

The notebook that starts an evaluation might not be the input notebook:

Possible Issues  (1)

Both programmed operations and user interactions can change which notebook is taking input:

History

Introduced in 1996 (3.0)

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

Text

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2025_inputnotebook, author="Wolfram Research", title="{InputNotebook}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/InputNotebook.html}", note=[Accessed: 05-December-2025]}

BibLaTeX

@online{reference.wolfram_2025_inputnotebook, organization={Wolfram Research}, title={InputNotebook}, year={1996}, url={https://reference.wolfram.com/language/ref/InputNotebook.html}, note=[Accessed: 05-December-2025]}

Top [フレーム]

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