Spacemacs - How to open shell in a separate window?
Asked Answered
N

1

6

Is it possible to launch shell in Spacemacs like a separate window beside my main window with code?

I would like to use it for various tasks like running tests, tools and apps etc

I mainly plan to use it for Python coding so any Python-specific tips are also very welcome.

Neace answered 23/12, 2016 at 16:3 Comment(0)
M
7

I think part of what you're looking for is found in the Shell layer, this will let you do anything you'd ordinarily do in a terminal emulator, you could launch iPython or the like from here.

Once the layer is installed you can use the following key bindings:

|-------------+------------------------------------------------------|
| Key binding | Description                                          |
|-------------+------------------------------------------------------|
| SPC '​       | Open, close or go to the default shell               |
| SPC "​       | Open external terminal emulator in current directory |
| SPC p '​     | Open a shell in the project's root                   |
| SPC p "​     | Open external terminal emulator in project root      |
| TAB         | browse completion with `helm`                        |
| SPC m H     | browse history with helm (works in eshell and shell) |
| C-j         | next item in history                                 |
| C-k         | previous item in history                             |
|-------------+------------------------------------------------------|

The other part is in the Python layer which supports spawning a python interpreter, this can by launched by SPC m s i.

If you like Jupyter Notebook (formerly iPython notebook) there's a layer for that too (ipython-notebook), once installed you can launch it with SPC a i n.

Merimerida answered 28/12, 2016 at 18:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.