简体   繁体   中英

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. 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. I am going line by line but as soon as I instantiate one of my python classes, it says classname NOT FOUND. How can I make hydrogen read the class name which is in the same file but not in the main() module?

ctrl-alt-Shift-Enter will Run All in Atom on Windows. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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