dotnet / interactive

.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
MIT License
2.8k stars 371 forks source link

`$PSScriptRoot` is empty (PowerShell kernel) #3546

Open BalassaMarton opened 1 month ago

BalassaMarton commented 1 month ago

Describe the bug

$PSScriptRoot is empty in pwsh cells. It should be initialized to the directory of the notebook.

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ): 1.0.522904+cdfa48b2ea1a27dfe0f545c42a34fd3ec7119074