Closed marckruzik closed 1 year ago
It might just be that an updated version of Microsoft.DotNet.Interactive is needed in dotnet-repl
.
I realized that the problem here isn't that #!set
doesn't work, it's that @input
doesn't work.
Fixed by #87.
I am trying to use --input to set a variable as an entry parameter. I would like to pass a string in CLI that I can use as a C# variable in my notebook.
I have .dib file with the following:
In Polyglot notebook, everything is fine:
Then I use the following dotnet-repl:
But the cell with the #!set command outputs this error message (in output.ipynb):
What should I write to make it work? Is #!set the right command to set a C# variable?
From the documentation, it's not clear how to pass a string variable from the CLI to the notebook, and use this variable outside a magic command. https://github.com/dotnet/interactive/blob/main/docs/input-prompts.md