Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List all User-defined Variables & Functions in a Notebook in Mathematica

Is there a way to list all the user-defined variables & function in a Notebook ?

I would like this for the comfort it brings to a notebook overview as well as to spot potential multiple use of a variable name (thus redefining it accidental)

like image 795
500 Avatar asked May 29 '11 04:05

500


People also ask

What are user-defined variables?

User-defined variables are variables that you define when you write a policy. You can use any combination of letters and numbers as variable names as long as the first variable starts with a letter: You do not need to initialize variables used to store single values, such as strings or integers.

What are user-defined variables in Linux?

User-defined variables are variables which can be created by the user and exist in the session. This means that no one can access user-defined variables that have been set by another user, and when the session is closed these variables expire.

Can you have a list of variables in Python?

Since a list can contain any Python variables, it can even contain other lists.


Video Answer


1 Answers

To find names in a context, say in the Global context, try

Names["Global`*"]

--Nasser

like image 98
Nasser Avatar answered Oct 13 '22 20:10

Nasser