jub
jub

Reputation: 417

VS Code and Jupyter Notebook - how to open large output in text editor?

I'm running jupyter notebooks in VSCode and have a return of a very large json - too large to see it all in the jupyter notebook.

When I prettyprint the json in VSCode, it shows some of the data, then: "show more (open the raw output data in a text editor) . . . "

When I click on that, VSCode pops up a msg, "The window is not responding".

How do I make this link work and open that json in Notepad++, which is installed?

Alternatively, how can I dump this json to text file so I can view in a text editor?

Upvotes: 13

Views: 47744

Answers (3)

Alfredo EP
Alfredo EP

Reputation: 81

On VSCode version 1.77.3 is Notebook > Output: Text Line Limit

enter image description here

Upvotes: 1

darda
darda

Reputation: 4155

Once notebooks were natively supported by VSCode, the setting changed to notebook.output.textLineLimit.

Upvotes: 17

njulhy
njulhy

Reputation: 55

You can try to set the 'Max Output Size', which is the setting of the jupyter extension, and check if it works.

If the 'Max Output Size' can't work, use logs or files to keep your output is wise.

Upvotes: 3

Related Questions