I started using a new text editor, Atom, for a month now and it has become my favorite. It has great Python packages: autocomplete-plus-python-jedi and hydrogen. I want to focus on hydrogen.
Hydrogen allows you to debug codes quickly and without hassle. The basic feature is typing cmd + alt + enter.
However what if you want to work on python console with the data(python objects) in the script? emacs has this feature so I thought Atom should have it too. I issued this on Github page, and Will, the author of hydrogen, showed me an answer. Big thanks to Will and here’s a dummies’ guide.
When you open Atom, it looks like above. Then hit cmd+alt+i for the developer tool.
It is just like Google chrome right? Then click the Console window; it’s default in my case. Run the codes in hydrogen mode: cmd + alt + enter.
Then some information is printed out on the console. Look for the iPython kernel json file. In some case, it prints out the entire path of the json file but in my case it printed only the name. Then open the terminal and do
find . | grep 'kernel-1534.json' # Change the json file name. # Then start the iPython shell ipython console --existing /path/to/json
Then you can access all the data simultaneously from Hydrogen to that iPython shell. Hooray~~~ 😀