Notebook: Inspect variable scope in Jupyter Notebook

Created on 4 Mar 2016  路  6Comments  路  Source: jupyter/notebook

Just wanted to leave this idea here, but I am not sure how relevant it is.
It would be nice if there will be some way to inspect notebook variable scope from GUI (something like Locals view in Visual Studio), since I am running into name collisions quite often.
locals_view

Question

Most helpful comment

This is a feature of Jupyter Lab which is currently available in alpha.

Screenshot:

screenshot

All 6 comments

RStudio has a similar feature, you can see the scope and value of a defined variable. This feature would be very useful.

This is a feature of Jupyter Lab which is currently available in alpha.

Screenshot:

screenshot

Looks great!

I should also add that you and roll your own variable inspector using ipywidgets. Example: https://github.com/ipython/ipywidgets/blob/master/docs/source/examples/Variable%20Inspector.ipynb

@gnestor how do you bring up the inspector? When I click in the cell and press control-i to bring it up it is blank. (same variables as shown in your gif, python 3 windows 10)

The inspector will populate when the cursor is at the end of a variable name:

image

Was this page helpful?
0 / 5 - 0 ratings