Skip to content
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

Display String Representation in C# Objects Nested in List #69

Open
AlexCatarino opened this issue Aug 3, 2022 · 0 comments
Open

Display String Representation in C# Objects Nested in List #69

AlexCatarino opened this issue Aug 3, 2022 · 0 comments

Comments

@AlexCatarino
Copy link
Member

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']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant