[英]How do I edit a cell in visual studio code interactive window
In vscode you can use "Jupyter: Create interactive window" to create an interactive window that resembles jupyter notebook.在 vscode 中你可以使用“Jupyter:创建交互式窗口”来创建一个类似于 jupyter notebook 的交互式 window。 However, in the interactive window I am unable to do a couple of things that I enjoy from jupyter notebook, such as editing a cell or moving the cells around.但是,在交互式 window 中,我无法做一些我喜欢 jupyter notebook 的事情,例如编辑单元格或移动单元格。 Is there any way to do these things inside an interactive window, without having to create an.ipynb file?有没有办法在交互式 window 中做这些事情,而不必创建一个 .ipynb 文件?
Not a direct answer but: for editing you can use # %%
to create 'cells' directly in the script you are working on.不是直接的答案,而是:对于编辑,您可以使用# %%
直接在您正在处理的脚本中创建“单元格”。 Then you can run the cells in the interactive window, this allows you to edit and re run.然后您可以运行交互式 window 中的单元格,这允许您编辑并重新运行。 Explained in detail in the Jupyter code cells section from the Python Interactive Window Tutorial .在Python 交互式 Window 教程的 Jupyter 代码单元部分中进行了详细说明。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.