Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 30 22:35
    JakeJing commented #387
  • Oct 30 22:30
    JakeJing commented #387
  • Oct 21 18:20
    perceptualrobots commented #413
  • Oct 10 18:09
    Almenon synchronize #175
  • Oct 10 18:09

    Almenon on add-py-310-support

    quote to avoid error see https… (compare)

  • Oct 10 18:07
    Almenon opened #175
  • Oct 10 18:07

    Almenon on add-py-310-support

    add python 3.10 support (compare)

  • Oct 10 18:06

    Almenon on master

    add status badge [skip ci] (compare)

  • Oct 10 18:04

    Almenon on master

    stop using deprecated methods (compare)

  • Oct 10 18:01

    Almenon on master

    upgrade lockfile version upgrade python-shell (compare)

  • Oct 03 19:10
    Almenon commented #305
  • Oct 03 19:09
    Almenon commented #421
  • Oct 03 19:07
    Almenon commented #421
  • Oct 03 19:05
    Almenon labeled #404
  • Oct 03 19:04
    Almenon commented #404
  • Oct 03 18:55
    Almenon labeled #174
  • Oct 03 18:55
    Almenon commented #174
  • Oct 03 18:53
    Almenon edited #174
  • Oct 03 18:53
    Almenon edited #174
  • Oct 03 18:51
    Almenon commented #174
tlenoir
@tlenoir
@LucasElmore Print Output:
File "/home/lenoir/.vscode/extensions/almenon.arepl-1.0.10/node_modules/arepl-backend/python/pythonEvaluator.py", line 169
raise StopIteration("There is no more input") from None
^
SyntaxError: invalid syntax
python3 -V -> 3.6.7
Almenon
@Almenon

@LucasElmore @tlenoir take a look at Almenon/AREPL-vscode#186
Reposting here:

That error only happens with python 2. You have 3, sure, but arepl will only use the version you have configured in your path. Check python.pythonpath - what is that pointing too? And what is the value of arepl.pythonpath?

tlenoir
@tlenoir
@Almenon thanks you! Work like a charm! In setting, python.pythonpath use "python". So just update and use "python3".
Ricardo Barroso
@RicardoBarroso_twitter
@Almenon thanks, it worked fine, I've just done the same as @tlenoir
Matthew Muller
@mwmuni
Hey guys, just wondering if AREPL supports Anaconda environments? Can't seem to find any threads on it and my AREPL installation is spitting out import errors.
Matthew Muller
@mwmuni
Solved it with some bizarre fix involving using pip to upgrade existing packages, allowing it to fail. Very strange.
Almenon
@Almenon
currently AREPL has a bug where it crashes if you have numpy installed on conda. See Almenon/AREPL-vscode#241.
What was the fix exactly?
Ronak Mehta
@KingRonak
@LucasElmore anyone who is having that issue go to the bottom left corner and choose python 3.7 32 bit
Wayne Wallace
@apvmedia
hi all, just joined and checking this out
Almenon
@Almenon
@apvmedia what do you think?
Ashok Bakthavathsalam
@kgashok

Just installed first time on gitpod.io and
add the following to your .gitpod.yml:

vscode:
  extensions:
    - almenon.arepl@1.0.20:Uu7lIOwyLgmNWpTwCl/iqQ==

And got the following error:

error

Almenon
@Almenon
@kgashok that error happens when python 2 is used. It looks like you're on a mac so python3 should be used automatically. Maybe you have the python extension configured to use python 2? AREPL pulls settings from the python extension. Setting python.pythonpath or arepl.pythonpath to python3 should fix it.
I'm opening up gitpod right now to experiment
Almenon
@Almenon
yeah just confirmed that setting python.pythonPath to python3 fixes it
stickandstone
@stickandstone
UnicodeEncodeError: 'utf-8' codec can't encode character '\udc90' in position 1626: surrogates not allowed
Hey, guys, can anyone help me? I don't know how to fix a error with coding.
Almenon
@Almenon
@stickandstone does that error just happen with arepl or does it also happen when you run the script normally? (Ex: from the terminal)
stickandstone
@stickandstone
@Almenon the script works fine, no errors. Could it be a problem with encoding in arepl?
Almenon
@Almenon
Yeah it's quite possibly a arepl bug :(
I've seen similar errors: Almenon/AREPL-vscode#149
Unfortunately I'm not a Unicode expert and I don't know how to fix it
Sanjay Sudhakaran
@SanjayS5
Hey Almenon, I'm trying to use AREPL for the first time. I can see the "Start typing or make a change and your code will be evaluated" screen
It doesn't seem to do anything despite me typing in python code on my file
Any ideas on why that might be?
Almenon
@Almenon

I hate encoding errors. Here's my approach:

  1. lay down
  2. try not to cry
  3. cry a lot

But seriously, if you post your code there is a small chance I might be able to help. If not you can try a python community and see if they have ideas

ooops just accidentally replied to a earlier comment I already responded to, awkward >_<
@SanjayS5 I see you opened a issue, I'll comment there
Sanjay Sudhakaran
@SanjayS5
Thank you!
tbitowt
@tbitowt
Hi,
is there any way to make classes, that are referenced twice, to not be displayed ad py/id reference in AREPL window?
I have tried to set make_ref = False as default in pickler.py, but this gave also wrong result
Almenon
@Almenon

Woah, I should have tried the make_ref=False option earlier, that's much better for the output! You can see the name of the object being referenced! :D
I can understand why you would want the second class to also display attributes but it's a bit misleading. To display attributes would imply that it is a different variable, while in fact it is really the same exact thing as the original variable. For example, if you change y.a then x.a will also change. y is just a reference to x.

That being said, a feature to be able to click on the reference and get taken to the actual object or some way to see the attributes of the reference would be really cool. I'll create a ticket for it but tbh it's probably not going to be done anytime soon. I'll turn off make_ref in the next update - in the meantime as a workaround you can use dump. If you dump the reference it will display the attributes.

whlinaa
@whlinaa
Hi All. I absolutely love his extension. There is one question in mind: I can't seem to copy the output (or any word for that matter) in the AREPL pane. Could anyone tell me how to do the copying? Thanks!
Hadoop Brains
@hadoopbrains
Print Output: File "/home/aanand/.vscode/extensions/almenon.arepl-1.0.24/node_modules/arepl-backend/python/arepl_python_evaluator.py", line 44 userError: str, ^ SyntaxError: invalid syntax Variables:
I m getting above error after installing arepl
any suggestions?
I am using VS Code version 1.47.2
nvm...I figured it out
Hadoop Brains
@hadoopbrains
had to change python version for arepl
Uli Horn
@ulihorn_gitlab
I am using vs code version 1.50.0-insider with python 3.7.7 in a virtual environment on Ubuntu 18.04. I have recently started using arepl which is really cool! but have now hit a snag. I am using the python beautifulsoup 4.9.3 module installed in the environment using "from bs4 import BeautifulSoup". which works fine if I run my code from the virtual commandline, but arepl gives an error: ModuleNotFound: No module named 'bs4'. I tried installing beautiful soup system wide incase arepl looks for it there but no luck. Is there something I am doing wrong?
Almenon
@Almenon
@ulihorn_gitlab what is the value of python.pythonpath and arepl.pythonpath?
ostap tymchenko
@ostap-tymchenko
new issue, does anyone know a fix? Almenon/AREPL-vscode#388
Chris Rickard
@MysteryAchievement
image.png
Has anyone encountered an invisible arepl icon in vscode using a dark theme? There is a space for it to the left of the Show Source and Split Editor icons but it is blank with arepl should be...
detlagammavega
@detlagammavega:matrix.org
[m]

Running VSCode v2.0.2 with AREPL Version: 1.57.1 (Universal) on 10.3.6 MacOS
Commit: 507ce72a4466fbb27b715c3722558bb15afa9f48
Date: 2021-06-17T13:28:32.912Z
Electron: 12.0.7
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Darwin x64 17.7.0

Arepl is giving an error with the following code, when it runs fine within VSCode Terminal or Jupiter Notebook:

cafes = pd.DataFrame({
'name': ['east pole', 'chrome yellow', 'brash', 'taproom', '3heart', 'spiller park pcm', 'refuge', 'toptime'],
'zip': [30324, 30312, 30318, 30317, 30306, 30308, 30303, 30318],
'poc': ['jared', 'kelly', 'matt', 'jonathan', 'nhan', 'dale', 'kitti', 'nolan']
})

The individual columns print without any errors:
print(cafes['zip'])
print(cafes['poc'])
print(cafes['name'])

However print(cafes[['zip', 'poc']]) or print(cafes[1::2]) or print(cafes) give the following error:
TypeError: int() argument must be a string, a bytes-like object or a number, not '_NoValueType'

Almenon
@Almenon
thanks for the bug report @detlagammavega:matrix.org , I confirmed it's an issue Almenon/AREPL-vscode#404
@MysteryAchievement what theme are you using?
tlt9116
@tlt9116
Hello - I have installed AREPL on Windows 10 using VS code
Version: 1.62.0 (user setup)
Commit: b3318bc0524af3d74034b8bb8a64df0ccf35549a
Date: 2021-11-03T15:23:01.379Z
Electron: 13.5.1
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19042
and receiving an error message : Error in the AREPL extension!
err code: 1 does anyone know how I can fix this problem?? Thanks in advance - tlt9116