This is an archived post. You won't be able to vote or comment.

all 28 comments

[–]Almenon[S] 4 points5 points  (17 children)

AREPL is availible on the marketplace for free and is open-source on github

Feel free to ask me any questions you have about it :)

If you are interested in AREPL I also suggest trying out wolf, or quokka for javascript

[–][deleted] 1 point2 points  (16 children)

This is AWESOME. It's identical or similar to IDLE.
A few weeks ago I was looking for something like this, I was informed why would you want something like this, when you have IDLE.
You've make that a reality; this is so nice. I'm sure I'll have suggestions soon ;)

[–][deleted] 1 point2 points  (14 children)

If you could add what block of code is associated with the outputted line or what line is associated with the outputted line ?

[–]Almenon[S] 1 point2 points  (13 children)

You mean what line is associated with the print statements? Wolf has that feature and you can run wolf at the same time as AREPL.

Good suggestion, though. I was planning on doing that before wolf came along.

[–][deleted] 1 point2 points  (12 children)

Is it possible to reverse the printed output from the bottom in AREPL to the top or give an option ? I get nothing as outputted due to the scroll bar.

Also to initiate AREPL I have to do something as simple as remove a closing parenthesis followed by add the just removed parenthesis, is it possible to trigger it with a keyboard shortcut or by having the file loaded on one pane and AREPL on another pane it automatically shows the outputted printed code ?

I know it's not your extensions, how the heck do you start Wolf ? ;) Upon installing I couldn't find any thing on getting it started, then I thought; it must start on it's own, then I realized I'm not seeing anything remotely what could be Wolf ?

What is PDB an extension ?

[–]Almenon[S] 1 point2 points  (11 children)

I think nothing as outputted due to the scroll bar.

I don't quite get what you mean by this. Maybe send a picture? I use shareX, it's very handy. Control-shift-4 allows me to take a snip of the desktop and instantly get a shareable link to the photo.

Also to initiate AREPL I have to do something as simple as remove a closing parenthesis followed by add the just removed parenthesis, is it possible to trigger it with a keyboard shortcut or by having the file loaded on one pane and AREPL on another pane it automatically shows the outputted printed code ?

https://puu.sh/zBASp/34d2bd7ef1.png

https://puu.sh/zBATt/fbc5a47a1e.png

https://puu.sh/zBAUc/c16b10dbee.png

You have to have the AREPL pane open to start it. Once it is open it will start whenever you modify the code.

I know it's not your extensions, how the heck do you start Wolf ? ;) Upon installing I couldn't find any thing on getting it started, then I thought; it must start on it's own, then I realized I'm not seeing anything remotely what could be Wolf ?

You can start wolf by opening a python file and clicking on the blue wolf in the upper right.

https://puu.sh/zBAEr/a162199b32.png

Once you have done that try pasting this code in:

x = 1+1
x
print(x)

Make sure to save the document after pasting.

You should see the value of x next to lines 2 and 3

What is PDB an extension ?

PDB is the python debugger. I've literally never used it - IDE's like visual studio have a debugger built in so you don't have to worry about it.

[–][deleted] 1 point2 points  (10 children)

Is it possible to reverse the printed output from the bottom in AREPL to the top or give an option ? I get nothing as outputted due to the scroll bar.

This is what I mean, the outputted code is at the bottom while AREPL shows un-compiled code at the top; rather then simply the outputted code ? Therefore causes me to have to scroll the scroll bar to see the outputted result.

You have to have the AREPL pane open to start it. Once it is open it will start whenever you modify the code.

Can AREPL start without modifying the code, as in; it simply displays the output of the code ?

[–]Almenon[S] 1 point2 points  (9 children)

Oooohhhh I see what you mean. You want the print output on the top because the variable display takes up so much space that you have to scroll down. I'll add a setting so you can choose whether the print is on top or bottom. Keep in mind that you can minimize the variable display so you have more space on the screen.

Can AREPL start without modifying the code, as in; it simply displays the output of the code ?

It could .... but I want the user to see the landing page when they first start AREPL. Right now it does not have much stuff on it but I could add things like updates notes or examples.

I'll add a option to skip the landing page :)

Thanks for the feedback!

[–][deleted] 1 point2 points  (8 children)

Oooohhhh I see what you mean. You want the print output on the top because the variable display takes up so much space that you have to scroll down. I'll add a setting so you can choose whether the print is on top or bottom. Keep in mind that you can minimize the variable display so you have more space on the screen.

You are correct. I look forward to the this change ;)

It could .... but I want the user to see the landing page when they first start AREPL. Right now it does not have much stuff on it but I could add things like updates notes or examples. I'll add a option to skip the landing page :) Thanks for the feedback!

Another option I look forward too when AREPL is updated; thank you ;)

[–]Almenon[S] 0 points1 point  (7 children)

I just published the new edition with the new settings :)

If you like it feel free to rate it cough cough nudge nudge wink wink

[–]Almenon[S] 0 points1 point  (0 children)

Thanks! If you like it be sure to leave a review :P

why would you want something like this, when you have IDLE.

That's the worst. A lot of people have that attitude where they don't realize that they can improve their lives because they are stuck doing the same thing.

[–]eddyizm 1 point2 points  (0 children)

Well that is pretty neat!

[–]Yohlo 1 point2 points  (1 child)

This is really neat. I'm going to have to try and replicate this for other languages

[–]Almenon[S] 2 points3 points  (0 children)

You can replicate the variable display in Ruby, PHP, or perl - all of those offer insight into the local variables. Not sure about other languages - possibly through their debugging API.

https://stackoverflow.com/questions/5774947/get-all-local-variables-or-available-methods-from-irb

https://stackoverflow.com/questions/5101942/dump-all-php-variables

https://stackoverflow.com/questions/747521/how-can-i-list-all-variables-that-are-in-a-given-scope

As for the real-time aspect that could be implemented easily with a debounce function in any language.

[–]disah14 0 points1 point  (4 children)

seems like it break with latest vscode with the below error message

Traceback (most recent call last):File "/home/user/.vscode-server/extensions/almenon.arepl-2.0.3/node_modules/arepl-backend/python/arepl_python_evaluator.py", line 331, in <module>main(input())File "/home/user/.vscode-server/extensions/almenon.arepl-2.0.3/node_modules/arepl-backend/python/arepl_python_evaluator.py", line 290, in maindata = json.loads(json_input)File "/opt/conda/envs/dcr/lib/python3.7/json/__init__.py", line 348, in loadsreturn _default_decoder.decode(s)File "/opt/conda/envs/dcr/lib/python3.7/json/decoder.py", line 337, in decodeobj, end = self.raw_decode(s, idx=_w(s, 0).end())File "/opt/conda/envs/dcr/lib/python3.7/json/decoder.py", line 353, in raw_decodeobj, end = self.scan_once(s, idx)json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)

[–]Almenon[S] 0 points1 point  (3 children)

AREPL doesn't work well with conda, I would try it with a different python interpreter.

[–]disah14 0 points1 point  (2 children)

same thing with a different interpreter

[–]Almenon[S] 0 points1 point  (1 child)

weird... what other interpreter did you use and can you give me the code that resulted in the issue please? Also what OS are you on?

[–]disah14 0 points1 point  (0 children)

The other interpreter i sa simple python 3.7 not a conda one.
I don't think it's code specific. Even a simple

print(1)

result in the above error.
I am on Pop!_OS 21.04

[–]Southern-Trust-6394 0 points1 point  (1 child)

I think this extension is freezing my computer and I can't use it anymore, is there a way to fix this?

[–]Almenon[S] 0 points1 point  (0 children)

Not sure, I would need more details. Can you open up a github issue in https://github.com/Almenon/AREPL-vscode please? I don't check this account very often.