I’ve just installed Atom and I’m trying to figure out how to set some things up. I’m mostly interested in doing mathematical computing, so my goal at the moment is setting up an interaction with a terminal shell to evaluate interpreted code (with Python, and with the Magma computer algebra package).
I have seen that there is Term2 to open a terminal window, and there are also packages script (and some related ones). I’m not sure which gives me what I actually need:
- I want to be able to open a terminal window using a keyboard shortcut that will launch the relevant interpreter, and automatically import the path from the launching buffer (plus the proper environment variables).
- I want to be able to use keyboard shortcuts to send various pieces of code from my text buffer to the interpreter (send a selection, block, entire file, up to cursor location… or at least some of these options)
- Ideally, I could also type code directly into the shell, send interrupt commands, etc.
It doesn’t seem like any of the three packages I mentioned can be set up in this way, though I may be mistaken. script seems to terminate the shell as soon as the code is evaluated, and I can’t figure out how to automate passing input to Term2. Any advice on which of these three I want to start with? And maybe tips on how to configure for my purposes?