I'm using .NET Interactive notebook inside VS Code and want to change the number of printed out elements:
var x = Enumerable.Range(0,21);
x.Display();
Only first 20 element are shown in the the output:
Can I somehow increase the size of output?
I'm using .NET Interactive notebook inside VS Code and want to change the number of printed out elements:
var x = Enumerable.Range(0,21);
x.Display();
Only first 20 element are shown in the the output:
Can I somehow increase the size of output?
Copyright © 2021 Jogjafile Inc.
You can use
Formatter
fromMicrosoft.DotNet.Interactive.Formatting
namespace to change the size of the output:Docs:
Formatter.ListExpansionLimit
= 20Gets or sets the limit to the number of items that will be written out in detail from an
IEnumerable
sequence.Formatter<T>.ListExpansionLimit
= (not set)An optional type-specific list expansion limit