M
Modular5mo ago
Legacy

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 ?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server