The package extends the available methods to computing with hydrogen.
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
: computing go 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 python the blockif ... else ...
need to be extended, but it's not.
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 |
If you have any ideas on how to improve the package, spot any bugs, or would like to support the development of new features, please feel free to share them via GitHub.