({{, (RefLink[NotebookOpen, paclet:ref/NotebookOpen])["name"]
opens an existing notebook with the specified name, returning the corresponding notebook object. }, {, (RefLink[NotebookOpen, paclet:ref/NotebookOpen])["name",options]
opens a notebook using the options given. }, {, (RefLink[NotebookOpen, paclet:ref/NotebookOpen])["http://url",…]
opens a notebook from any accessible URL. }})

OpenersNotesSection(Spacer1)Details

(RefLink[NotebookOpen, paclet:ref/NotebookOpen])[(RefLink[File, paclet:ref/File])["path"]] and (RefLink[NotebookOpen, paclet:ref/NotebookOpen])[(RefLink[URL, paclet:ref/URL])["url"]] are also supported.

(RefLink[NotebookOpen, paclet:ref/NotebookOpen]) will usually cause a new notebook window to be opened on your screen.

(RefLink[NotebookOpen, paclet:ref/NotebookOpen]) returns (RefLink[$Failed, paclet:ref/$Failed]) if it cannot open a notebook with the specified name.

(RefLink[NotebookOpen, paclet:ref/NotebookOpen]) searches the directories specified by the (RefLink[NotebookPath, paclet:ref/NotebookPath]) global option for the front end. »

With the option (RefLink[Visible, paclet:ref/Visible])->(RefLink[False, paclet:ref/False]) set, (RefLink[NotebookOpen, paclet:ref/NotebookOpen]) will open a notebook with the option (RefLink[Visible, paclet:ref/Visible])->(RefLink[False, paclet:ref/False]) set so that the notebook never displays onscreen.

(RefLink[NotebookOpen, paclet:ref/NotebookOpen]) initially sets the current selection to be before the first cell in the notebook.

OpenersPrimaryExamplesSection(Spacer1)Examples  (4)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Open a notebook from a file:

file=FileNameJoin[{$InstallationDirectory,"Documentation","English","System","ExampleData","document.nb"}];

nb=NotebookOpen[file];

OpenersExampleSection1(Spacer1)Scope  (1)

Open a notebook from the web:

NotebookOpen["http://demonstrations.wolfram.com/data/001281/0004/PoissonDistribution/PoissonDistribution.nb"]

OpenersExampleSection2(Spacer1)Possible Issues  (2)

A relative file name locates files relative to the front end's (RefLink[NotebookPath, paclet:ref/NotebookPath]) setting:

NotebookOpen["BasicMathAssistant.nb"]

Set the current working directory:

SetDirectory[FileNameJoin[{$InstallationDirectory,"Documentation","English","System","ExampleData"}]]

(RefLink[NotebookOpen, paclet:ref/NotebookOpen]) does not look in this directory for the specified file name:

NotebookOpen["document.nb"]

To open a file in the current directory, give a path based on (RefLink[Directory, paclet:ref/Directory])[]:

NotebookOpen[FileNameJoin[{Directory[],"document.nb"}]];

Return to the previous working directory:

ResetDirectory[];

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[NotebookLocate, paclet:ref/NotebookLocate])  ▪  (RefLink[NotebookSelection, paclet:ref/NotebookSelection])  ▪  (RefLink[NotebookClose, paclet:ref/NotebookClose])  ▪  (RefLink[NotebookSave, paclet:ref/NotebookSave])  ▪  (RefLink[OpenRead, paclet:ref/OpenRead])  ▪  (RefLink[Get, paclet:ref/Get])  ▪  (RefLink[SetSelectedNotebook, paclet:ref/SetSelectedNotebook])  ▪  (RefLink[CreateDocument, paclet:ref/CreateDocument])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Notebooks as Wolfram Language Expressions, paclet:tutorial/NotebooksAsWolframLanguageExpressions])}, {▪(RefLinkPlain[Manipulating Notebooks from the Kernel, paclet:tutorial/ManipulatingNotebooksFromTheKernel])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Low-Level Notebook Programming, paclet:guide/LowLevelNotebookProgramming])}})}})