Python for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and provides a powerful application scripting tool for .NET developers.
The print method in Jupyter doesn't display string from __repr__/__str__ when they are nested in a list:
qb = QuantBook()
tickers = ["ITA", "PPA", "XAR", "DFEN", "SHLD"]
symbols = []
for ticker in tickers:
symbols.append(qb.AddEquity(ticker, Resolution.Daily).Symbol)
print(symbols)
Displays:
[<QuantConnect.Symbol object at 0x7f9b74b40608>,
<QuantConnect.Symbol object at 0x7f9b7638ba48>,
<QuantConnect.Symbol object at 0x7f9b746d7c08>,
<QuantConnect.Symbol object at 0x7f9b746d71c8>,
<QuantConnect.Symbol object at 0x7f9b746d7108>]
Details
The
print
method in Jupyter doesn't displaystring
from__repr__
/__str__
when they are nested in a list:Displays:
when it should: