Questions tagged [polyglot-notebooks]
4 questions
3
votes
1 answer
How to include project references in .NET Interactive Notebooks?
Using NET 6 I have the following project structure:
nuget.config
project.code-workspace
- Core
Core.csproj
- Api
Api.csproj
- Sim
notebook.ipynb
Where notebook.ipynb is for now just:
#i "nuget:https://api.nuget.org/v3/index.json"
#r…

Miguel Moura
- 36,732
- 85
- 259
- 481
0
votes
0 answers
Azure Translation endpoint example code FAILS in VS Code Polyglot Notebook
QUESTION: Why would the following code work fine in a VS Pro, C# console app but fail in a VS Code Polyglot Notebook C# cell?
I am prototyping C# code in VS Code and Polyglot notebooks to translate text. I have successfully used Polyglot Notebooks…

rfreytag
- 955
- 1
- 8
- 24
0
votes
0 answers
How to get directory of the dib file in a Polyglot notebook?
When using Polyglot notebooks (previously known as dot net interactive notebooks) with PowerShell, how do I get the directory of the executing file in this ecosystem?
In (raw) PowerShell I would use $PSScriptRoot (or $MyInvocation.MyCommand.Path),…

Alex KeySmith
- 16,657
- 11
- 74
- 152
0
votes
1 answer
Powershell access works but AzureCliCredential fails with "Principal X is not authorized"
In a Polyglot Notebook in VS Code, after
az login --tenant xyz
I can
az iot hub device-twin show --hub-name 'hub1' --device-id 'John' --query 'properties.desired' --output json --subscription 'sub1'
This is great.
Sadly, when trying to get the…

tymtam
- 31,798
- 8
- 86
- 126