jupyter notebook in vscode code example

Example 1: execute jupyter notebook on .py file vs code

Just add #%% a the beginning of your code

Example 2: vscode adjust size of notebook cell

For anyone else who comes upon this, in File -> Preferences -> Settings. 
Under User settings, under Extensions, under Python, way down in the 
Data Science options there is a setting for "Max Output Size" 
which controls the cell height before a scroll bar appears.

Or faster, open Settings and type "Max Output Size" into the search bar.

I'm using VS Code 1.45.1 on Ubuntu.

Tags:

Misc Example