forked from pythonnet/pythonnet
-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
Details
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>]
when it should:
['ITA', 'PPA', 'XAR', 'DFEN', 'SHLD']
Metadata
Metadata
Assignees
Labels
No labels