简体   繁体   English

Python Atom Hydrogen,逐行或一次全部执行代码

[英]Python Atom Hydrogen, stepping through code line by line, or all at once

I just installed Hydrogen module into Atom so I can get user input into Python. 我刚刚将Hydrogen模块安装到Atom中,以便可以将用户输入Python中。 How can I run the code using hydrogen without going line by line? 如何在不逐行执行的情况下使用氢气运行代码? The only reason I installed this program so I can input data using the input() python command. 我安装此程序的唯一原因是,我可以使用input()python命令输入数据。 I am going line by line but as soon as I instantiate one of my python classes, it says classname NOT FOUND. 我要逐行进行,但是一旦实例化我的一个python类,它就会说没有找到类名。 How can I make hydrogen read the class name which is in the same file but not in the main() module? 如何让Hydro读取同一文件中但不在main()模块中的类名?

ctrl-alt-Shift-Enter will Run All in Atom on Windows. ctrl-alt-Shift-Enter将在Windows的Atom中全部运行 This is a bit better than Run Cell because running the cell will stop if you have any markers set up to define cells, which you can look into in the Hydrogen docs: https://nteract.gitbooks.io/hydrogen/docs/Usage/Cells.html 这比“运行单元”好一点,因为如果您设置了任何定义单元的标记,运行单元将停止,您可以在Hydrogen文档中查看: https : //nteract.gitbooks.io/hydrogen/docs/Usage /Cells.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM