Home Download Buy Blog Forum Support

Open python REPL in new window

Open python REPL in new window

Postby seasick on Fri Apr 26, 2013 2:26 am

Hello all,

I found this tutorial on stack overflow to open an interactive session using the current file. It works, but I was wondering if there was a way to have it generate a new window?
http://stackoverflow.com/questions/1408 ... ime-text-2

Also, when it generates the window on the bottom of the screen, it keeps generating new ones. Is there a way to replace the existing REPL?

Thanks,
seasick
 
Posts: 1
Joined: Fri Apr 26, 2013 2:24 am

Re: Open python REPL in new window

Postby adzenith on Fri Apr 26, 2013 4:30 pm

Yeah, just create a new window first, then use something like new_window.run_command('repl_open', ...).
You can have it replace the previous repl just by iterating through the views and seeing if you want to replace any of them.
adzenith
 
Posts: 1215
Joined: Mon Oct 19, 2009 9:12 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], Yahoo [Bot] and 29 guests