Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable Inspector clears all variables and stops recording new ones #231

Open
wangwei1619 opened this issue Nov 15, 2021 · 2 comments
Open

Comments

@wangwei1619
Copy link

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
Copy link
Author

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.

@Dcosthephalump
Copy link

Dcosthephalump commented Jun 28, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants