jupyter / qtconsole

Jupyter Qt Console
https://qtconsole.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
413 stars 199 forks source link

TypeError due to wrong spelling in keyword #591

Closed AndreiSavici closed 10 months ago

AndreiSavici commented 10 months ago

The call to compute_item_matrix function in https://github.com/jupyter/qtconsole/blob/master/qtconsole/completion_html.py#L315 uses the displaywidth keyword, but the implementation in https://github.com/jupyter/qtconsole/blob/master/qtconsole/util.py#L144 has is spelled as displaywith (no second d). This cause a type error when called in the code

ccordoba12 commented 10 months ago

Hey @AndreiSavici, thanks for reporting and for finding the solution to this problem.

We'd really appreciate if you could submit a pull request with the fix you described because we're really busy with other things.