10

You can open multiple tabs in the Atom editor, and have a multiple column layout as well. However, I am not being able to find out how to open a Python shell inside Atom so that I can load a Python script in the Python interactive shell.

Does anyone know the steps to achieve this?

Casimir et Hippolyte
  • 88,009
  • 5
  • 94
  • 125
multigoodverse
  • 7,638
  • 19
  • 64
  • 106
  • I don't think there is. I downloaded it last night and didn't see anything like it in the default installation. That doesn't mean you can't hack it. Atom is a hackable text-editor that I'm sure can be added. – Fastidious Nov 14 '15 at 13:26
  • 1
    Why do you want to open a shell, as opposed to running your Python program with the `script` plugin? – pjs Nov 15 '15 at 21:40
  • Not sure what the script plugin is about. I want to load my functions and variables to an interactive Python shell so I can test things one by one before writing a script. Does that make sense? – multigoodverse Nov 16 '15 at 12:46

2 Answers2

33

The script package is likely what you want, it allows you to test your code by running part or all of it at a time:

Screenshot of Script Package

You can install it by opening the settings view with Ctrl-, switching to the Install panel and searching for script. You can also install from the command line by running:

apm install script

Technically what you are asking for is closer to the Terminal Plus package, as opens up a terminal pane from which you can load the python interactive environment by entering python.

Screenshot of Terminal Plus Package

Richard Slater
  • 6,313
  • 4
  • 53
  • 81
Ace.C
  • 1,201
  • 12
  • 22
  • This should be the accepted answer as it covers all possible bases! – Robino Mar 20 '17 at 15:51
  • Note: Script package fails to run selected line(s) of Python code, it prints a disclaimer when you execute particular line(s) of code. I would suggest 'Hydrogen' package for REPL functionality. – Sumax Jul 30 '19 at 12:18
-1

You need to go into: Packages --> Settings view --> Install packages and themes and then type "terminal" and install the one that starts with "platformio":

enter image description here

Install it and then you will have the + button down there.

Adrian Mole
  • 49,934
  • 160
  • 51
  • 83
Alamo Pud
  • 1
  • 1