# New-OfficeNotebook

Creates a live Jupyter notebook that can be populated and saved without running cells.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`None`

**Outputs**

`OfficeIMO.Notebook.NotebookDocument`

**Source**

[NewOfficeNotebookCommand.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/51cd59ece1fa22f062b7419cfd3afa43c266a7cf/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Notebook/NewOfficeNotebookCommand.cs#L17) 

Creates a live Jupyter notebook that can be populated and saved without running cells.

## Syntax

```
New-OfficeNotebook
[[-Path] <String>]
[<CommonParameters>]
```

[#](#method-new-officenotebook-string)

Parameter set: `All Parameter Sets`

## Examples

### Author a notebook and save it.

```powershell
$notebook = New-OfficeNotebook -Path ./lab.ipynb
$notebook | Add-OfficeNotebookCell -Kind Markdown -Source '# Lab notes'
$notebook | Add-OfficeNotebookCell -Kind Code -Language PowerShell -Source 'Get-Date'
$notebook | Save-OfficeNotebook
$notebook | Close-OfficeNotebook
```

## Parameters

**-Path String optionalposition: 0**

Associates a default .ipynb save destination without writing it.

## 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:49470BAE202A0D12993C2B30876D301F9B2E491724F1F250DA75571EAD6772F5 -->
