Answer a question

When I use VSCode interactive Python, sometimes I get this message:

Output exceeds the size limit. Open the full output data in a text editor

This has links to settings and the text editor. However, the text editor, my usual option, is littered with unicode symbols that are not being rendered and is completely unreadable (it should be showing the traceback for an error).

Meanwhile, the settings do not contain a Max Output Size for Jupyter, which was suggested in this post: VS Code and Jupyter Notebook - how to open large output in text editor?

What can I do to get the traceback displayed in full?

Answers

The Jupyter extension currently notes the following regarding the 'Max Output Size' setting:

This setting is deprecated in favor of notebook.output.textLineLimit. This setting will be removed in an upcoming release.

The setting they are referring to is 'Notebook > Output: Text Line Limit' which requires you to reload VSCode before changes are applied. Also note that the previous setting used 0 to indicate that the output is unlimited, while the new setting does not. So, if you want to see exceptionally large outputs, then you will need to fill in an enormous number. Personally, I limit my output to 1000 lines because I find that any output larger than that either should be split up or written to a file.

Logo

开发云社区提供前沿行业资讯和优质的学习知识,同时提供优质稳定、价格优惠的云主机、数据库、网络、云储存等云服务产品

更多推荐