AREPL-vscode icon indicating copy to clipboard operation
AREPL-vscode copied to clipboard

Hide variables object instead of showing message

Open fristhon opened this issue 4 years ago • 6 comments

Can we hide this section completely ? I want to use Arepl in my tutorial videos. It would be great if that message not shown.

image

fristhon avatar May 14 '21 13:05 fristhon

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.

Almenon avatar May 15 '21 02:05 Almenon

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.

Almenon avatar May 15 '21 02:05 Almenon

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.

fristhon avatar May 15 '21 12:05 fristhon

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.

Thanks a lot. I do this change and even more in AREPL-backednd :> hope we have a new version soon

fristhon avatar May 15 '21 12:05 fristhon

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.

stereotypicaldev avatar Oct 10 '23 21:10 stereotypicaldev

@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.

Almenon avatar Oct 11 '23 15:10 Almenon