Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change mimetype for VSC Jupyter Notebook ouput

I'd like to change the output format in VSC from html to plain. I notice I can do this for individual cell as below, but I wonder if I can change the settings.json for the entire file. I'm using Jupyter Notebook.

enter image description here

like image 337
nilsinelabore Avatar asked Sep 06 '25 00:09

nilsinelabore


1 Answers

From the vscode notebook console click "customize notebook layout"

click "editting settings.json"

you should see something like this:

{"workbench.colorTheme": "Default Dark+",
"editor.fontSize": 16,
"notebook.lineNumbers": "on",
"notebook.output.textLineLimit": 50,
"notebook.editorOptionsCustomizations": null,
"terminal.integrated.inheritEnv": false,
"notebook.displayOrder": ["image/png", "text/plain"]}

Update the last line with your prefered order of output format.

like image 142
Yingxu He Avatar answered Sep 11 '25 17:09

Yingxu He