Legacy
Legacy
MModular
Created by Legacy on 7/28/2024 in #questions
How to delete/uninitialize a variable in mojo when running through notebooks
When i declare a variable, I am unable to free the memory used by it in jupyter/vscode notebooks. Setting the
variable = None
variable = None
or
del variable
del variable
works in python. Same case with structs, which can't be deleted unless i manually implement
__del__
__del__
. Is there any way to free the memory casually when experimenting with large memory consuming variables in the notebook ?
2 replies