From 5a7d3cfe69cc60ed3f06b3859c43cb6b453498ec Mon Sep 17 00:00:00 2001 From: visual-learning-dev Date: Sat, 1 Nov 2025 11:59:27 -0700 Subject: [PATCH 1/2] To check the kernel type and assign shell value accordingly. --- src/inspectorscripts.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/inspectorscripts.ts b/src/inspectorscripts.ts index e186380..eb60247 100644 --- a/src/inspectorscripts.ts +++ b/src/inspectorscripts.ts @@ -27,7 +27,11 @@ from IPython.core.magics.namespace import NamespaceMagics _jupyterlab_variableinspector_nms = NamespaceMagics() _jupyterlab_variableinspector_Jupyter = get_ipython() -_jupyterlab_variableinspector_nms.shell = _jupyterlab_variableinspector_Jupyter.kernel.shell +# Check kernel implementation +if hasattr(_jupyterlab_variableinspector_Jupyter.kernel, 'shell'): + _jupyterlab_variableinspector_nms.shell = _jupyterlab_variableinspector_Jupyter.kernel.shell +else: + _jupyterlab_variableinspector_nms.shell = _jupyterlab_variableinspector_Jupyter _jupyterlab_variableinspector_maxitems = 10 From 640e24a5235338c7520eae4d37b543bcb18e18a0 Mon Sep 17 00:00:00 2001 From: visual-learning-dev Date: Sat, 1 Nov 2025 12:02:27 -0700 Subject: [PATCH 2/2] Moved the places to appendChild of cell and row to valid the rendermine as the is the connected property of the cell requires is connected on chrome. --- src/variableinspector.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/variableinspector.ts b/src/variableinspector.ts index ecd4403..3926c65 100644 --- a/src/variableinspector.ts +++ b/src/variableinspector.ts @@ -386,6 +386,9 @@ export class VariableInspectorPanel row.appendChild(cell); cell = document.createElement('jp-data-grid-cell') as DataGridCell; + cell.gridColumn = '7'; + row.appendChild(cell); + this._table.appendChild(row); const rendermime = this._source?.rendermime; if (item.isWidget && rendermime) { const model = new OutputAreaModel({ trusted: true }); @@ -398,9 +401,6 @@ export class VariableInspectorPanel '
' ); } - cell.gridColumn = '7'; - row.appendChild(cell); - this._table.appendChild(row); } }