Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide variables object instead of showing message #395

Open
fristhon opened this issue May 14, 2021 · 6 comments
Open

Hide variables object instead of showing message #395

fristhon opened this issue May 14, 2021 · 6 comments
Assignees
Labels
enhancement New feature or request has-workaround

Comments

@fristhon
Copy link

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

@Almenon
Copy link
Owner

Almenon commented May 15, 2021

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 Almenon added the enhancement New feature or request label May 15, 2021
@Almenon Almenon self-assigned this May 15, 2021
@Almenon
Copy link
Owner

Almenon commented May 15, 2021

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.

@fristhon
Copy link
Author

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
Copy link
Author

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

@gzachariadis
Copy link

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.

@Almenon
Copy link
Owner

Almenon commented Oct 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request has-workaround
Projects
None yet
Development

No branches or pull requests

3 participants