Open codykonior opened 3 years ago
This is due to how the Powershell_kernel is set up. I would recommend using the .Net Interactive PowerShell Kernel instead as that has more consistent reliability.
Install guide for .Net Kernels - https://github.com/dotnet/interactive/blob/main/docs/NotebookswithJupyter.md
Once installed you can enable the setting in ADS for showing all kernels and then change the kernels to .Net Powershell.
Issue Type: Bug
PowerShell notebooks hang if you redefine your PowerShell prompt. It's not uncommon for enterprise PowerShell modules to override the prompt with more a more useful one on load.
To Reproduce
Create a PowerShell notebook with 3 code cells:
You can run the first two however you want. Once you run the third one it will never end and kill the notebook. Stopping the cell doesn't work, and running the previous cells no longer works. You can't act normally again until you restart ADS.
Other variations of setting the prompt such as with Set-Alias also break the notebook.
Workarounds
But this means every cell needs nonsensical fixup code at the end.
Azure Data Studio version: azuredatastudio 1.25.2 (4d4917d328ab7a7526817a0f0ef03237a79aa54d, 2021-01-20T22:52:13.492Z) OS version: Windows_NT x64 10.0.17763
Extensions: none