Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/inspectorscripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions src/variableinspector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand All @@ -398,9 +401,6 @@ export class VariableInspectorPanel
'</br>'
);
}
cell.gridColumn = '7';
row.appendChild(cell);
this._table.appendChild(row);
}
}

Expand Down