vscodeJupyter
vscodeJupyter copied to clipboard
pretty print long json results.
How can the results fit to the window? See screenshot.
Environment data
VS Code version: Version 1.10.2 Jupyter Extension version:
latest
OS and version: osx 10.12.4
Actual behavior
long json strings are flattened to one line and must be horizontal scrolled.

Expected behavior
fit the size of the window, scroll vertically if necessary
Steps to reproduce:
print out any large json object
Try this one:
{'submission_totals': [{'BDF': 194}, {'BM', 172}], 'submission_group_counts': {'BM': {'3-8': 4, '0-8': 5, '1-0': 12, '2-6': 5, '2-10': 6, '1-4': 4, '4-7': 6, '3-10': 2, '0-6': 10, '4-0': 13, '4-4': 1, '4-8': 3, '1-8': 4, '2-1': 4, '0-9': 3, '1-7': 14, '0-10': 3, '3-0': 15, '0-1': 7, '0-2': 11, '3-9': 2, '3-7': 3, '4-5': 4, '4-3': 4, '2-4': 3, '4-9': 2, '2-2': 9, '1-6': 9, '2-3': 4}, 'BDF': {'1-0': 14, '1-7': 13, '0-8': 6, '3-8': 2, '2-4': 1, '2-6': 8, '2-10': 2, '2-5': 2, '3-10': 19, '0-4': 4, '0-6': 3, '4-0': 13, '1-6': 11, '2-2': 17, '1-8': 11, '2-1': 2, '3-4': 8, '0-0': 2, '4-4': 2, '0-10': 5, '2-9': 8, '3-0': 3, '0-1': 8, '0-2': 3, '3-7': 1, '4-5': 5, '4-3': 5, '1-9': 2, '1-5': 4, '4-9': 2, '4-8': 2, '2-3': 6}}, 'submission_final': [{'BDF': 32}, {'BM', 29}]}
I have found pprint as work around. Having the results auto wrap would be a 'a nice to have'.