python get all variables from file and check code example
Example: how to get a list of all variables in memory python
# Use the magic function %who to show all local user defined variables
%who
# Use %whos to show details
%whos
# Use the magic function %who to show all local user defined variables
%who
# Use %whos to show details
%whos