Almenon
Almenon
Just doing a normal exec works 🤔 why does my exec fail? ```python code = """ import pandas as pd cafes = pd.DataFrame({ 'zip': [30324,], 'poc': ['jared', ] }) #...
Using runcontext also works: ```python locals = {} import contextvars run_context = contextvars.Context() run_context.run(exec, code, locals) ``` The pandas code works in AREPL if python version 3.7 or above. This...
You're on python 3.5. AREPL requires python 3.7 or greater. What version of AREPL are you on?
Arepl v2.0.3 has an update that should automatically use the python path you have chosen with the python extension. Are you using arepl v2.0.3 and the python extension?
Can you send me a full-screen screenshot of VSCode when the error appears please?
KikeVen emailed me, this definitely looks like a bug. Possibly a bug with the python extension - it may be giving me the wrong path, because he has python 3.7...
What version of the python extension are you on?
Nevermind, confirmed this is a issue with the latest python version. I was able to reproduce the scenario and get the wrong version of python in AREPL.
see https://github.com/microsoft/vscode/issues/82471
https://github.com/kenhowardpdx/vscode-gist/blob/develop/__mocks__/vscode.ts Ken Howard mocks vscode w/ jest. I don't want to add layering logic - arepl is tightly coupled w/ vscode and even if I did extract it the idea...