问题描述
使用vscode jupyter笔记本时,是否有任何方法可以在单元格输出中显示输入问题?当我使用Google Colab时,单元格输出中存在问题.我想知道如何在不使用print()的情况下显示问题.
在Google Colab中:
如果要在同一位置显示输入和输出,建议使用python文件,终端将依次显示输入和输出内容.
Is there any way to show input question in cell output while using vscode jupyter notebook?When I use Google Colab, there are question in the cell output. I want to know how to show question without using print().
In google Colab: https://i.stack.imgur.com/L71OS.png
In vsCode: https://i.stack.imgur.com/4szQJ.png
At present, the Jupyter function in VSCode is provided by Python extension. The bottom of each cell is used to display output. Therefore, the input it receives is provided by the input box above, which is its display input mode.
If you want to display input and output in the same place, it is recommended that you use a python file, and the terminal will display the input and output content in turn.
这篇关于在vscode jupyter笔记本输出中显示问题/输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!