List all the defined variables in Jupyter Notebooks

Are you trying to print your current environment in Jupyter Notebooks? Here is a nice way! It’s a kind of magic

A recurrent complaint beginner users have about Jupyter Notebooks is the lack of information about the self-created environment variables. If you have this question, probably first of all you should be sure about the Jupyter Notebooks main purpose (totally different from IDEs like Spyder or Pycharm).

But in case a notebook is all what you need, you have few ways to display this information. The first and easiest one is to use the magic method %whos

Two alternative ways are nbextension and Jupyter Lab variable inspector. You can find more information here

Carlos Vecina
Carlos Vecina
Data Scientist & TechLead at Bankinter

Data Scientist & TechLead at Bankinter | AI & Data Science for Business