# Save-OfficeNotebook

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

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Notebook.NotebookDocument`

**Outputs**

`System.IO.FileInfo`

**Source**

[SaveOfficeNotebookCommand.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/51cd59ece1fa22f062b7419cfd3afa43c266a7cf/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Notebook/SaveOfficeNotebookCommand.cs#L14) 

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>]
```

[#](#method-save-officenotebook-switchparameter-notebookdocument-switchparameter-switchparameter-string)

Parameter set: `All Parameter Sets`

## Examples

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

```powershell
$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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:475F7F5992C5CC51DDB43DDA9D514A6E7B2949683D3297B61C4768CC2D3B54BD -->
