Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

jupyter consumes 100 disk

#delete the data
a, b, c = pd.DataFrame(), pd.DataFrame(), pd.DataFrame()
lst = [a, b, c]
del a, b, c # dfs still in list
del lst     # memory release now

#Track CPU and RAM usage
import psutil # gives a single float value
psutil.cpu_percent() # gives an object with many fields
psutil.virtual_memory()
dict(psutil.virtual_memory()._asdict()) # you can convert that object to a dictionary 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jupyter #consumes #disk
ADD COMMENT
Topic
Name
7+8 =