Sublime Forum

Open SublimeREPL in new window

#1

Hi,

I am wondering if there is an option to open SublimeREPL in a new window. I develop in python and at this point when I hit ctrl+b SublimeREPL opens in a new tab. I have successfully configured it to reuse the tab based on some info I have found elsewhere, but it would be really beneficial to open it in a new window so you have both the code and the running application visible at the same time.

While this would be the ideal solution I am also interested in how to switch to the REPL tab automatically after ctrl+b AND if the tab already exists. Cause right now if I ran the code once and didnt close the tab then the code starts running in the same tab, but I have to swith to that manually.

I assume some code need to be inserted to this section of the sublimerepl.py:

        for view in window.views():
            if view.name() == view_id:
                found = view
                break
        view = found or window.new_file()

EDIT: Another option would be to create a custom command in Sublime which “detaches” the right tab from the rest and by this it would “open” the running code in a new window. I know tabs can be closed automatically, I am wondering if they can be detached automatically as well.

Thanks.

0 Likes

#2

Packages/SublimeREPL/config/Ruby/pry_repl.rb:37:in `main’: uninitialized constant Pry::InputCompleter (NameError)
Did you mean? Pry::InputLock

As of Oct 25, 2017, the file pry_repl.rb in the current distribution of SublimeREPL (as installed by Package Control today) has not been edited since Mar 14, 2013. It appears that SublimeREPL has undergone no maintenance in three years. I found a three year old patch for the above, but I almost didn’t even try it, believing that it must have already been merged into the current distribution.

Is this a discreet place to ask whether SublimeREPL is an orphan package in need of a volunteer?

0 Likes

#3

I use SublimeREPL, but yeah, it hasn’t been updated in forever.

0 Likes

#4

I started to learn python and I use sublimeREPL solely to allow me get input from the user. If I use Sublime without it then the

test = input("Hello:")

simply prints Hello and no input can be entered. Are you guys aware of any alternatives providing me the same functionality?

0 Likes

#5

You can always run Python from a terminal. The only thing you gain from REPL is it’s in a Sublime view. Unless you’re using the built-in interpreter that comes with Sublime, but that is such an old version of Python. I prefer running a later installed version and either running it through REPL or just do an interactive session in the terminal.

0 Likes