Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Save-OfficeNotebook

Module
PSWriteOffice
Inputs
OfficeIMO.Notebook.NotebookDocument
Outputs
System.IO.FileInfo

Atomically saves a live notebook as .ipynb and leaves it open for further editing.

Syntax

Save-OfficeNotebook
[-AllowLoss]
-Document <NotebookDocument>
[-NoClobber]
[-PassThru]
[[-Path] <String>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Save a new notebook or imported source to a new destination.

$notebook | Save-OfficeNotebook -Path ./updated.ipynb -NoClobber -PassThru

Parameters

-AllowLoss SwitchParameter optional
Accept loss reported when normalizing the source to Jupyter notebook format.
-Document NotebookDocument requiredpipeline: True (ByValue)
Live notebook to save.
-NoClobber SwitchParameter optional
Refuse to replace a destination that already exists.
-PassThru SwitchParameter optional
Return the saved file.
-Path String optionalposition: 0
.ipynb destination. Omission uses the path associated with a native notebook at creation or open time.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.