AREPL-vscode
AREPL-vscode copied to clipboard
Hide variables object instead of showing message
Can we hide this section completely ? I want to use Arepl in my tutorial videos. It would be great if that message not shown.

Sure, I can remove the message in the next release. Just curious - why do you have AREPL.showGlobalVars turned off?
Also it's really cool that you're using AREPL for tutorial videos :D I'd love to check them out once you finish them.
In the meantime you can turn off the message by going to C:\Users\<yourUserName>\.vscode\extensions\almenon.arepl-2.0.2\node_modules\arepl-backend\python\arepl_python_evaluator.py and replacing line 198 noGlobalVarsMsg = {"zz status": "AREPL is configured to not show global vars"} with noGlobalVarsMsg = {}
If you're on mac or linux the path might be a bit different.
Sure, I can remove the message in the next release. Just curious - why do you have AREPL.showGlobalVars turned off?
Also it's really cool that you're using AREPL for tutorial videos :D I'd love to check them out once you finish them.
AREPL is good for teaching because viewers can see outputs when I'm typing instead of waiting for execution. This section is not necessary when the settings are set to not display variables, IMHO.
In the meantime you can turn off the message by going to
C:\Users\<yourUserName>\.vscode\extensions\almenon.arepl-2.0.2\node_modules\arepl-backend\python\arepl_python_evaluator.pyand replacing line 198noGlobalVarsMsg = {"zz status": "AREPL is configured to not show global vars"}withnoGlobalVarsMsg = {}If you're on mac or linux the path might be a bit different.
Thanks a lot. I do this change and even more in AREPL-backednd :> hope we have a new version soon
Changing noGlobalVarsMsg = {"zz status": "AREPL is configured to not show global vars"} with noGlobalVarsMsg = {} no longer works. I changed it to noGlobalVarsMsg = {"":""} tried to Find a way to fully delete it from the output, as well as the "Variables :" Title but couldn't do it.
@gzachariadis changing it to noGlobalVarsMsg = {} worked for me. What platform and python version are you using? I tested it with windows and python 3.11.
I also suggest adding a print of something random inside arepl_python_evaluator so you can be sure that you're editing the right file.
Note that AREPL has upgraded so the path would not have 2.0.2 but instead 2.0.5.