A superset of commands to improve hydrogen workflow.
To install hydrogen-run
search for hydrogen-run in the Install pane of the Pulsar settings or run ppm install hydrogen-run
. Alternatively, you can run ppm install bacadra/pulsar-hydrogen-run
to install a package directly from the Github repository.
The package introduce two new concepts of evaluation:
recalculate
: clear result -> restart kernel -> run calculation,inline
: calculation is going one breakpoint after one instead of pushing all text to python interpreter instantly. This way you got result next to breakpoints. Inline methods inherit all limitations of hydrogen package, e.g. in Pythonif ... else ...
is broken.
The commands have been assigned to the function keys with optional modifier keys. There are few method from hydrogen package which have been assigned too.
Shorcut | Command | Description |
---|---|---|
F5 |
hydrogen:run-all |
push all text in single run; standard method of Hydrogen |
Alt-F5 |
hydrogen-run:recalculate-all |
clear results, reset kernel and push all text in single run |
Shift-F5 |
hydrogen:run-all-above |
push above text in single run |
Ctrl-F5 |
hydrogen-run:recalculate-all-above |
clear results, reset kernel and push above text in single run |
F6 |
hydrogen-run:run-all-inline |
push all text in multiple runs |
Alt-F6 |
hydrogen-run:recalculate-all-inline |
clear results, reset kernel and push all text in multiple runs |
Shift-F6 |
hydrogen-run:run-all-above-inline |
push above text in multiple runs |
Ctrl-F6 |
hydrogen-run:recalculate-all-above-inline |
clear results, reset kernel and push above text in multiple runs |
F7 |
hydrogen:run |
run single statement in single run |
Ctrl-F7 |
hydrogen:run-cell |
run cell in single run |
Alt-F7 |
hydrogen:clear-and-center |
clear results and scroll text editor to cursor |
Shift-F7 |
hydrogen:interrupt-kernel |
interrupt kernel |
F8 |
hydrogen:run-and-move-down |
run single statement and go to next statement |
Ctrl-F8 |
hydrogen:run-cell-and-move-down |
run single cell and go to next cell |
Alt-F8 |
hydrogen-run:clear-and-restart |
clear results and restart kernel |
Shift-F8 |
hydrogen:shutdown-kernel |
shutdown kernel |
F9 |
hydrogen:toggle-inspector |
toggle inspector pane |
Got ideas to make this package better, found a bug, or want to help add new features? Just drop your thoughts on GitHub — any feedback’s welcome!