jupyterlab-variableInspector icon indicating copy to clipboard operation
jupyterlab-variableInspector copied to clipboard

Variable Inspector clears all variables and stops recording new ones

Open wangwei1619 opened this issue 3 years ago • 2 comments

I find that my Variable Inspector cleared all variables and stopped recording new variables. I do not know whether I pressed anything wrong. It works well on a newly created notebook.

wangwei1619 avatar Nov 15 '21 08:11 wangwei1619

The problem stated above was fixed by restarting Kernel (or something else that I did not notice). But today, I come across another similar but more serious problem after I installed the xeus-python by pip install xeus-python. The Variable Inspector cleared all variables, and it got stuck on "Restarting kernel". Uninstalling xeus-python and re-installing Varaible Inspector can not fix the problem.

wangwei1619 avatar Nov 16 '21 08:11 wangwei1619

I have had an adjacent issue to this. I was experimenting around with what variables could be inspected when installing the extension. Everything was working well until I created a dictionary in one file. The variable inspector broke on this and would not stop inspecting the kernel of the notebook with the dictionary.

Since then, whenever I have restarted kernels for any notebook the variable inspector would display variables for the previously shut down kernel and the log, in debug mode, would output errors that I do not understand. It would freeze the variables it had already observed in place and switching between notebooks, running code, anything I could think of would not make a change. The following is an example log:

10:58:05 AM

Log level set to debug

10:58:07 AM

'[{"varName": "x", "varType": "int", "varSize": "28", "varShape": "", "varContent": "1", "isMatrix": false, "isWidget": null}]'

10:58:12 AM

'[{"varName": "x", "varType": "int", "varSize": "28", "varShape": "", "varContent": "1", "isMatrix": false, "isWidget": null}]'

10:58:34 AM

No such comm target registered: jupyter.widget.control
No such comm: f423b59d-0631-45f4-8d84-ef8f50b15393

10:58:37 AM

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[2], line 1
----> 1 _jupyterlab_variableinspector_dict_list()

NameError: name '_jupyterlab_variableinspector_dict_list' is not defined

10:58:57 AM

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[2], line 1
----> 1 _jupyterlab_variableinspector_dict_list()

NameError: name '_jupyterlab_variableinspector_dict_list' is not defined

10:59:21 AM

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[3], line 1
----> 1 _jupyterlab_variableinspector_dict_list()

NameError: name '_jupyterlab_variableinspector_dict_list' is not defined

11:02:49 AM

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[3], line 1
----> 1 _jupyterlab_variableinspector_dict_list()

NameError: name '_jupyterlab_variableinspector_dict_list' is not defined

11:02:55 AM

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[4], line 1
----> 1 _jupyterlab_variableinspector_dict_list()

NameError: name '_jupyterlab_variableinspector_dict_list' is not defined

11:02:55 AM

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[5], line 1
----> 1 _jupyterlab_variableinspector_dict_list()

NameError: name '_jupyterlab_variableinspector_dict_list' is not defined

The output indicating when I restarted the console is in the above, but here it is isolated for clarity:

10:58:34 AM

No such comm target registered: jupyter.widget.control
No such comm: f423b59d-0631-45f4-8d84-ef8f50b15393

I am running JupyterLab on windows. The version of JupyterLab is 3.6.4 and the version of Variable Inspector is 3.0.9.

Dcosthephalump avatar Jun 28 '23 17:06 Dcosthephalump