vscode jupyter notebook code example Example: execute jupyter notebook on .py file vs code Just add #%% a the beginning of your code