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

Variable viewer: How do you remove variables? #10237

Closed
Tyriar opened this issue Jun 1, 2022 · 3 comments
Closed

Variable viewer: How do you remove variables? #10237

Tyriar opened this issue Jun 1, 2022 · 3 comments
Assignees
Labels
triage-needed Issue needs to be triaged

Comments

@Tyriar
Copy link
Member

Tyriar commented Jun 1, 2022

Testing #10170

If I run a cell to add some variables and then remove variables in the cell and run it again the old variable remains there. Are these essentially global across all cells? If so should we support deleting them on the kernel via a button?

@github-actions github-actions bot added the triage-needed Issue needs to be triaged label Jun 1, 2022
@rchiodo
Copy link
Contributor

rchiodo commented Jun 1, 2022

How did you remove them?

@Tyriar
Copy link
Member Author

Tyriar commented Jun 1, 2022

I didn't, this might be better considered as a feature request if this hold true:

Are these essentially global across all cells?

@rchiodo
Copy link
Contributor

rchiodo commented Jun 1, 2022

You can 'del x' in a python cell. That is how you destroy a python object. That should make the variable disappear in the variables view.

But yes variables are global. The 'kernel' is a python process that is shared amongst all of the cells in a notebook. The cells you run don't go away until you restart the kernel.

@rchiodo rchiodo closed this as completed Jun 1, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
triage-needed Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants