Closed amine-ammor closed 1 year ago
Hi, thanks for your feedback!
This is the object we use for executing the code, so my guess is that the problem is there.
This is a subclass of InteractiveShell from IPython, but the docs don't mention anything about releasing memory.
Python doesn't have much flexibility for managing memory but there might be stuff we can do with the garbage collection module. Do you have time to give it a try?
Yes , thank you for the references. I would like to work on the pull request. I have some free time this week. I'll keep you updated.
awesome!
I just posted a pull request, for this issue, you can now review the proposed solution.
Hello, I am a new user of the framework. I encountered the following problem when using ploomber-engine:
when calling a notebook using ploomber-engine, with the methods 'get_namespace' or 'execute' of PloomberClient , the memory reserved by the kernel used by the notebook is not released.
For example, if we consider the following notebook with one cell, named "temp_test.py", saved as a python file with jupytext.
if we execute it using this script:
the deletion of client, doesn't free memory reserved by the notebook.
I get, in fact the following output which indicate that the memory is not entirely freed:
Is there a clean way to free the memory by the executed notebook?
I also tried this variant :
but I got the same problem.
Also am I using the api correctly ? Thank you for your reply.