Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AREPL fails in Code 1.23

See original GitHub issue

As of updating Visual Studio Code 1.23 AREPL does not work when selecting some code followed by F1 & AREPL: Open Highlighted code in new AREPL session ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

Almenoncommented, May 27, 2018

Yes, AREPL supports PyQT 😃

Currently it supports a hardcoded list of GUI libraries

[“turtle”, “matplotlib”, “tkinter”, “kivy”, “pyforms”, “PyQt4”, “PyQt5”, “wx”, “pyside”, “plotly”, “ggplot”, “bokeh”]

With the next release I’ll turn that into a setting you can change.

It will work with any GUI library in the list but there’s two things to watch out for:

  1. The window will steal your focus whenever it pops up. On windows you can use alt-tab to quickly switch back to VSCode
  2. The window might pop up over your code - you should adjust the position of the window so it appears where you want it.
import sys
from PyQt5.QtWidgets import QApplication, QWidget
from PyQt5.QtGui import QIcon
class App(QWidget):
    def __init__(self):
        self.title = 'PyQt5 simple window -'
        self.left = 900 # adjust these values so popup doesnt appear over your code = 100
        self.width = 640
        self.height = 480
    def initUI(self):
        self.setGeometry(self.left,, self.width, self.height)

app = QApplication(sys.argv)
ex = App()

As for the AREPL: Open Highlighted code in new AREPL session command, I made it create a new document so you don’t end up with junk temporary files in your directory. Now that I think about it what I could do instead is save the new document to a folder like “%Appdata%\AREPL” so you can save and load your snippets from there. Does that sound better?

SheepDominationcommented, May 27, 2018

I got it working quite well actually 👍
Although, when running AREPL: Open Highlighted code in new AREPL session it would be good if it didn’t create new documents within VSCode and rather wrote to a temporary file of sorts to which I could then load. Especially if experimenting to analyze code snippets etc.

Also can AREPL work with PyQT and the like ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

AREPL for python - Visual Studio Marketplace
Extension for Visual Studio Code - real-time python scratchpad. ... AREPL is availible for free on the vscode marketplace.
Read more >
AREPL extension error in VSCode with Python 3.7
When I start editing the code, instead of showing me the real time output, I get: 'py' is not recognized as an internal...
Read more >
Marcus amasalidis, Tesco wine festival discount code, The boiler house brunch ... Mediaportal 2 setup failed, Cameron dallas instagram phone number, D4pdf, ...
Read more >
ar02appendix.pdf -
(b) Failure to Supervise ... In the Matter of Adrien Arpel, Inc. 34-46497. 09/13/02 ... Code involving companies with approximately $269 billion in....
Read more >
C++ Programming from Beginner to Expert in 2022 | Harsh Kajla
No previous experience with C++ or coding is required Have you never prog. ... So floored if a equals 1.23 Now, first of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found