5

I have python script with jupyter notebook mark #%% which describe that I can run this script in visual studio code python interactive.

Acccording to this:

Jupyter/IPython Notebooks: Shortcut for "run all"?

I have similar question because described solution does not work in my case. How to specify shortcut for jupyter notebook command 'run all' in visual studio code?

4

1 回答 1

4

keybindings.json您可以通过单击修改文件来创建自己的键盘快捷键

File > preferences > keyboard shortcuts

然后点击链接——(下图右下角) 在此处输入图像描述

您还可以安装代码运行器扩展

Code runner 会在 vs 代码窗口的右上角添加一个播放按钮,你可以点击它来运行你的代码。

于 2019-03-21T10:04:20.017 回答