admin管理员组

文章数量:1125356

How to enter a multi-line command in %debug in a python Jupyter notebook?

If you try enter, ctrl+enter, shift+enter, alt+enter the first line will be executed, instead of going to a second line.

How to enter a multi-line command in %debug in a python Jupyter notebook?

If you try enter, ctrl+enter, shift+enter, alt+enter the first line will be executed, instead of going to a second line.

Share Improve this question asked 2 days ago Jens WagemakerJens Wagemaker 3743 silver badges16 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

You can try using semi-colon in a single line.

x = 5; y = x**2; print(y)

本文标签: debuggingHow to enter a multiline command in debug in a python Jupyter notebookStack Overflow