-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redirect Console.WriteLine output to repl console #96
Comments
This is a great proposal, and probably doesn't require redirecting console output. .NET Interactive already captures console output and transforms it into a stream of events ( Writing some form of feedback to the terminal based on these events should be fairly simple. It's what |
Providing a progress indicator would be really interesting. The difficulty I see is to manage imports.
I agree. For now, the main improvement would be to display the main stream on console |
I wouldn't special case console output. Other display events (e.g. |
We are using dotnet-repl to automate .dib notebooks as a replacement for scripts (.bat script, .sh scripts), as part of our DevOps revamping.
As we are C# developers, using C# as a scripting language and notebooks as a scripting environment is a huge boost to our productivity.
We are using with command lines such as:
We are running those command lines through tools such as Jenkins, or Windows batch. I know about the ipynb output, but it works as a black box, as there is no real time direct display from dotnet-repl to the console.
Any fail forces to connect to the distant machine, launch VSCode and look into the notebook to debug.
Besides, some execution can be long, and with no console output, we are left in the dark. Is it blocked by something? Is it reaching at least the first step?
It would be really helpful, if there was some way to display information from the notebook to the console using dotnet-repl.
Maybe there could be some way to redirect the notebook Console.WriteLine output / standard output to the dotnet-repl console?
I would like to do the following:
Console.WriteLine("Hello");
dotnet repl --run main.dib --exit-after-run --output-console
This is a feature which will allow dotnet-repl to be used far more in our company, and by other devops as well.
The text was updated successfully, but these errors were encountered: