I have a .NET Interactive Notebook, works fine when I execute from VS Code with the extension
This contains a sequence of PowerShell
scripts, that I use for local builds on my system
I want to re-use the same in CI
Is there a way to Invoke
the ipynb
file from command line?
Edit
I did come across PowerShellNotebook module
So I can do something like
Invoke-ExecuteNotebook -InputNotebook .\quick.ipynb
Problem is
I refer to files using relative path (reading json, importing module, ...) the relative path doesn't work very well with Invoke-ExecuteNotebook
Meaning, something like this won't work https://i.imgur.com/E9h0EbF.png https://i.imgur.com/Jv2zxKr.png
I tries Get-Location
, Split-Path $MyInvocation.MyCommand.Path -Parent
Both didn't work for finding current location