Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

VS code Jupyter output not showing full output

I wrote an extended input code where user will input many options. So the output generated will continuously build up.

However, juypter notebook in VS code will limit the output to this:
enter image description here

there will be ‘…’ after serveral input prompts so i cant see what i have input and what the next prompt is.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I tried to use this

from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"

but it doesnt work.

>Solution :

You can change the number of lines that are displayed in the output via the settings. Change it to something higher, eg. 500:

"notebook.output.textLineLimit": 500

Open VS Code > File > Preferences > Settings. Then in the settings page look for "notebook". Scroll down to the "Notebook > Output: Text Line Limit", which by default should have 50 as value.
I hope this helps.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading